| 1 | <?php |
||
| 21 | trait SectionableTrait |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var Collection|SectionInterface[] |
||
| 25 | */ |
||
| 26 | protected $sections; |
||
| 27 | |||
| 28 | public function initializeSectionsCollection(): void |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return Collection|SectionInterface[] |
||
| 35 | */ |
||
| 36 | public function getSections(): ?Collection |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param SectionInterface $section |
||
| 43 | * |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | public function hasSection(SectionInterface $section): bool |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param SectionInterface $section |
||
| 53 | */ |
||
| 54 | public function addSection(SectionInterface $section): void |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param SectionInterface $section |
||
| 61 | */ |
||
| 62 | public function removeSection(SectionInterface $section): void |
||
| 68 | } |
||
| 69 |