1
0
This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
yii2-aws-s3/src/base/commands/traits/Options.php
2016-10-08 00:17:22 +06:00

48 lines
769 B
PHP

<?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 withOptions(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 withOption(string $name, $value)
{
$this->options[$name] = $value;
return $this;
}
}