| 1 | <?php |
||
| 6 | final class Item |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | private $name; |
||
| 12 | /** |
||
| 13 | * @var SectionList $sectionList |
||
| 14 | */ |
||
| 15 | private $sections; |
||
| 16 | /** |
||
| 17 | * @var Partial |
||
| 18 | */ |
||
| 19 | private $partial; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * NameItem constructor. |
||
| 23 | * @param string $name |
||
| 24 | */ |
||
| 25 | public function __construct(string $name) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param SectionList $sectionList |
||
| 32 | * @return Item |
||
| 33 | */ |
||
| 34 | public function withSections(SectionList $sectionList) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param Partial $partial |
||
| 43 | * @return Item |
||
| 44 | */ |
||
| 45 | public function withPartial(Partial $partial): self |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getName(): string |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function __toString(): string |
||
| 72 | } |