Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function findSlotInBundleByName(ProductBundleInterface $bundle, string $name): ProductBundleSlotInterface |
||
20 | { |
||
21 | foreach ($bundle->getSlots() as $slot) { |
||
22 | if ($slot->getName() === $name) { |
||
23 | return $slot; |
||
24 | } |
||
25 | } |
||
26 | |||
27 | throw new SlotNotFoundException($name, $bundle); |
||
28 | } |
||
29 | } |
||
30 |