1
0

initial commit

This commit is contained in:
frostealth
2016-04-08 15:50:37 +06:00
commit 9cfd06866e
40 changed files with 2312 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
<?php
namespace frostealth\yii2\aws\s3\base\commands\traits;
/**
* Trait Options
*
* @package frostealth\yii2\aws\s3\base\commands\traits
*/
trait Options
{
/** @var array */
protected $options = [];
/**
* @param array $value
*
* @return $this
*/
final public function setOptions(array $value)
{
$this->options = $value;
return $this;
}
/**
* @return array
*/
final public function getOptions(): array
{
return $this->options;
}
/**
* @param string $name
* @param mixed $value
*
* @return $this
*/
final public function setOption(string $name, $value)
{
$this->options[$name] = $value;
return $this;
}
}