1 | <?php |
||
9 | class EnumerableStatus implements Status |
||
10 | { |
||
11 | /** |
||
12 | * @var string[] |
||
13 | */ |
||
14 | protected $options; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $value; |
||
20 | |||
21 | /** |
||
22 | * The constructor. |
||
23 | * @param string $value |
||
24 | */ |
||
25 | 9 | public function __construct(string $value) |
|
31 | |||
32 | /** |
||
33 | * @param string $value |
||
34 | * @return EnumerableStatus |
||
35 | */ |
||
36 | 1 | public static function fromString(string $value): EnumerableStatus |
|
40 | |||
41 | /** |
||
42 | * @return string[] |
||
43 | */ |
||
44 | 7 | public function options(): array |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 5 | public function toString(): string |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 3 | public function isEqual(ValueObject $object): bool |
|
65 | } |
||
66 |