| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class RegisterException extends BaseEvent |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var bool |
||
| 11 | */ |
||
| 12 | protected static $allowKill = false; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Set var that allow to kill application if register exception is throwed away |
||
| 16 | * |
||
| 17 | * @param bool $allowKill |
||
| 18 | */ |
||
| 19 | 1 | public static function allowKill($allowKill) |
|
| 22 | 1 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | 1 | public static function isKillingAllowed() |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Allow to kill application if register throw an exception |
||
| 34 | * |
||
| 35 | * @param string $eventName |
||
| 36 | * @param array $parameters |
||
| 37 | * @throws \Exception |
||
| 38 | */ |
||
| 39 | 2 | public function __construct($eventName, array $parameters) |
|
| 48 |