| Total Complexity | 7 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | trait SectionableTrait |
||
| 17 | { |
||
| 18 | /** @var Collection|SectionInterface[] */ |
||
| 19 | protected $sections; |
||
| 20 | |||
| 21 | public function initializeSectionsCollection(): void |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getSections(): ?Collection |
||
| 29 | } |
||
| 30 | |||
| 31 | public function hasSection(SectionInterface $section): bool |
||
| 32 | { |
||
| 33 | return $this->sections->contains($section); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function addSection(SectionInterface $section): void |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | public function removeSection(SectionInterface $section): void |
||
| 47 | } |
||
| 48 | } |
||
| 50 |