| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class HookException extends \Exception |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Duplicate hook implementer message |
||
| 25 | */ |
||
| 26 | const DUPLICATE_HOOK_NAME = 'The Hook `{%1}` already registered'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Undeclared hook name message |
||
| 30 | */ |
||
| 31 | const UNREGISTERED_HOOK_NAME = 'The Hook `{%1}` was not registered'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $name |
||
| 35 | * @return \Quantum\Exceptions\HookException |
||
| 36 | */ |
||
| 37 | public static function hookDuplicateName(string $name): HookException |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $name |
||
| 44 | * @return \Quantum\Exceptions\HookException |
||
| 45 | */ |
||
| 46 | public static function unregisteredHookName(string $name): HookException |
||
| 51 |