Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function hookCommentScored(HookPortfolioCommentScoredEventInterface $hookEvent): void |
||
13 | { |
||
14 | /** @var PortfolioComment $comment */ |
||
15 | $comment = $hookEvent->getEventData()['comment']; |
||
16 | |||
17 | $statement = (new PortfolioCommentScored($comment))->generate(); |
||
18 | |||
19 | $this->saveSharedStatement($statement); |
||
20 | } |
||
22 |