Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function assign(TaxonAwareInterface $taxonAware, array $taxonCodes): void |
||
30 | { |
||
31 | foreach ($taxonCodes as $taxonCode) { |
||
32 | /** @var TaxonInterface $taxon */ |
||
33 | $taxon = $this->taxonRepository->findOneBy(['code' => $taxonCode]); |
||
34 | |||
35 | if (null !== $taxon) { |
||
36 | $taxonAware->addTaxon($taxon); |
||
37 | } |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |