| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function addScript(GenericEvent $event): void |
||
| 25 | { |
||
| 26 | $order = $event->getSubject(); |
||
| 27 | |||
| 28 | if (!$order instanceof OrderInterface) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | |||
| 32 | $this->tagBag->addTag( |
||
| 33 | (new TwigTag('@SetonoSyliusStrandsPlugin/Tag/items_purchased.js.twig', ['order' => $order])) |
||
| 34 | ->setSection(TagInterface::SECTION_BODY_END) |
||
| 35 | ->setName(Tags::TAG_ITEMS_PURCHASED) |
||
| 36 | ); |
||
| 39 |