| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public static function getInstance(): ?HookManager |
||
| 36 | { |
||
| 37 | if (self::$instance == null) { |
||
| 38 | self::$instance = new self(); |
||
| 39 | } |
||
| 40 | |||
| 41 | return self::$instance; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $hookName |
||
| 46 | * @throws \Quantum\Exceptions\DiException |
||
| 47 | * @throws \ReflectionException |
||
| 48 | */ |
||
| 49 | public function __invoke(string $hookName) |
||
| 50 | { |
||
| 71 |