| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Options implements ParameterInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The options value name. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $value; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The options parameters. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $params; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritdoc |
||
| 25 | */ |
||
| 26 | public function __construct(string $value, $params = null) |
||
| 27 | { |
||
| 28 | $this->value = $value; |
||
| 29 | $this->params = array_wrap($params); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | public function getValue(): string |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc |
||
| 42 | */ |
||
| 43 | public function getParams(): array |
||
| 46 | } |
||
| 47 | } |