| 1 | <?php |
||
| 13 | final class SectionItem implements ItemInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ItemInterface |
||
| 17 | */ |
||
| 18 | private $nameItem; |
||
| 19 | /** |
||
| 20 | * @var SectionList |
||
| 21 | */ |
||
| 22 | private $sectionList; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param ItemInterface $nameItem |
||
| 26 | * @param SectionList $sectionList |
||
| 27 | */ |
||
| 28 | 7 | public function __construct(ItemInterface $nameItem, SectionList $sectionList) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 7 | public function getName(): string |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 5 | public function __toString(): string |
|
| 53 | } |