| 1 | <?php declare(strict_types=1); |
||
| 7 | final class Label |
||
| 8 | { |
||
| 9 | private $value; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string $value |
||
| 13 | * @throws InvalidValueException |
||
| 14 | */ |
||
| 15 | private function setValue(string $value): void |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $value |
||
| 26 | * @throws InvalidValueException |
||
| 27 | */ |
||
| 28 | public function __construct(string $value) |
||
| 32 | |||
| 33 | public function getValue(): string |
||
| 37 | |||
| 38 | public function __toString(): string |
||
| 42 | } |
||
| 43 |