| 1 | <?php |
||
| 6 | final class NameItem implements ItemInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | private $name; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * NameItem constructor. |
||
| 15 | * @param string $name |
||
| 16 | */ |
||
| 17 | public function __construct(string $name) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | public function getName(): string |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function __toString(): string |
||
| 37 | } |