| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 3 | public function expelRecordedEvents() : array |
|
| 19 | { |
||
| 20 | 3 | if ($this instanceof EventAware === false) { |
|
| 21 | 1 | throw IncompatibleClass::forExpellingEvents($this); |
|
| 22 | } |
||
| 23 | |||
| 24 | 2 | $recordedEvents = $this->recordedEvents; |
|
| 25 | |||
| 26 | 2 | $this->recordedEvents = []; |
|
| 27 | |||
| 28 | 2 | return $recordedEvents; |
|
| 29 | } |
||
| 40 |