Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 | 46 | public function __construct(string $value, $params = null) |
|
27 | { |
||
28 | 46 | $this->value = $value; |
|
29 | 46 | $this->params = array_wrap($params); |
|
30 | 46 | } |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 42 | public function getValue(): string |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 42 | public function getParams(): array |
|
48 |