We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 14 | class CallbackEvent { |
||
| 15 | |||
| 16 | /** @var array<self> */ |
||
| 17 | private static array $EVENTS; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return array<self> |
||
| 21 | */ |
||
| 22 | public static function getAll(): array { |
||
| 23 | return self::$EVENTS; |
||
| 24 | } |
||
| 25 | |||
| 26 | public static function add(self $eventToAdd): void { |
||
| 27 | self::$EVENTS[] = $eventToAdd; |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function remove(self $eventToRemove): void { |
||
| 35 | } |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | public function __construct( |
||
| 47 | |||
| 48 | } |
||
| 49 |