| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function hookItemAdded(HookPortfolioItemAddedEventInterface $hookEvent): void |
||
| 12 | { |
||
| 13 | $item = $hookEvent->getEventData()['portfolio']; |
||
| 14 | |||
| 15 | $portfolioItemShared = new PortfolioItemShared($item); |
||
| 16 | |||
| 17 | $statement = $portfolioItemShared->generate(); |
||
| 18 | |||
| 19 | $this->saveSharedStatement($statement); |
||
| 20 | } |
||
| 22 |