| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class EventManager |
||
| 12 | { |
||
| 13 | use Singleton; |
||
| 14 | |||
| 15 | protected static function singleInstance(): EventProvider |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function recordEvent(Event ...$events): void |
||
| 21 | { |
||
| 22 | self::instance()->recordEvent(...$events); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return Event[] |
||
| 27 | */ |
||
| 28 | public static function releaseEvents(): iterable |
||
| 31 | } |
||
| 32 | } |
||
| 33 |