| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function assign(SectionableInterface $sectionsAware, array $sectionsCodes): void |
||
| 30 | { |
||
| 31 | foreach ($sectionsCodes as $sectionCode) { |
||
| 32 | /** @var SectionInterface $section */ |
||
| 33 | $section = $this->sectionRepository->findOneBy(['code' => $sectionCode]); |
||
| 34 | |||
| 35 | if (null !== $section) { |
||
| 36 | $sectionsAware->addSection($section); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |
||
| 41 |