Lines
100.00%
2 / 2
Functions and Methods
100.00%
2 / 2
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| TriggerException | 100.00% | 2 / 2 | 100.00% | 2 / 2 | 2 | 100.00% | 1 / 1 | |||
| configInvalid | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| configUnencodable | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Exception; | |
| 6 | ||
| 7 | /** @extends StewartException<TriggerError> */ | |
| 8 | final class TriggerException extends StewartException | |
| 9 | { | |
| 10 | public static function configInvalid(): self | |
| 11 | { | |
| 12 | return self::createForReason(TriggerError::ConfigInvalid); | |
| 13 | } | |
| 14 | ||
| 15 | public static function configUnencodable(string $path): self | |
| 16 | { | |
| 17 | return self::createForReason(TriggerError::ConfigUnencodable, path: $path); | |
| 18 | } | |
| 19 | } |