1
0

fix some return type declarations

This commit is contained in:
frostealth
2016-04-29 00:29:23 +06:00
parent 053120e2fd
commit 9749555fbe
5 changed files with 9 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ class Service extends Component implements ServiceInterface
const ALC_BUCKET_OWNER_FULL_CONTROL = 'bucket-owner-full-control'; const ALC_BUCKET_OWNER_FULL_CONTROL = 'bucket-owner-full-control';
/** @var string */ /** @var string */
public $defaultBucket; public $defaultBucket = '';
/** @var string */ /** @var string */
public $defaultAcl = ''; public $defaultAcl = '';

View File

@@ -13,13 +13,11 @@ trait Async
private $isAsync = false; private $isAsync = false;
/** /**
* @param bool $async
*
* @return $this * @return $this
*/ */
final public function async(bool $async = true) final public function async()
{ {
$this->isAsync = $async; $this->isAsync = true;
return $this; return $this;
} }

View File

@@ -28,7 +28,7 @@ class ExistCommand extends ExecutableCommand implements HasBucket
*/ */
public function getBucket(): string public function getBucket(): string
{ {
return $this->bucket; return (string)$this->bucket;
} }
/** /**
@@ -48,7 +48,7 @@ class ExistCommand extends ExecutableCommand implements HasBucket
*/ */
public function getFilename(): string public function getFilename(): string
{ {
return $this->filename; return (string)$this->filename;
} }
/** /**

View File

@@ -25,7 +25,7 @@ class GetUrlCommand extends ExecutableCommand implements HasBucket
*/ */
public function getBucket(): string public function getBucket(): string
{ {
return $this->bucket; return (string)$this->bucket;
} }
/** /**
@@ -45,7 +45,7 @@ class GetUrlCommand extends ExecutableCommand implements HasBucket
*/ */
public function getFilename(): string public function getFilename(): string
{ {
return $this->filename; return (string)$this->filename;
} }
/** /**

View File

@@ -10,9 +10,9 @@ namespace frostealth\yii2\aws\s3\interfaces\commands;
interface Asynchronous interface Asynchronous
{ {
/** /**
* @param bool $async * @return mixed
*/ */
public function async(bool $async = true); public function async();
/** /**
* @return bool * @return bool