Conditions | 4 |
Paths | 8 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | 109 | public function notify(RenderingEvent $event): void |
|
37 | { |
||
38 | 109 | if ($event instanceof ModeChangedEvent) { |
|
39 | 109 | $this->mode = $event->getMode(); |
|
40 | } |
||
41 | 109 | if ($event instanceof CitationItemsChanged) { |
|
42 | 44 | $this->citationItems = $event->getCitationItems(); |
|
43 | } |
||
44 | 109 | if ($event instanceof StateChangedEvent) { |
|
45 | 58 | $this->state = $event->getRenderingState(); |
|
46 | } |
||
49 |