| 1 | <?php |
||
| 8 | final class NameItem implements ItemInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $name; |
||
| 14 | |||
| 15 | private const VALID_CHAR = "ABCDEFGHIJKLMNOPQRSTUVWXYZ.+-"; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $name |
||
| 19 | */ |
||
| 20 | 38 | public function __construct(string $name) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 35 | public function getName(): string |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 10 | public function __toString(): string |
|
| 44 | } |
||
| 45 |