Lines
0.00%
0 / 1
Functions and Methods
0.00%
0 / 1
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CommandException | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | 0.00% | 0 / 1 | |||
| rejected | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Exception; | |
| 6 | ||
| 7 | /** @extends StewartException<CommandError> */ | |
| 8 | final class CommandException extends StewartException | |
| 9 | { | |
| 10 | public static function rejected(string $reason): self | |
| 11 | { | |
| 12 | return self::createForReason(CommandError::Rejected, reason: $reason); | |
| 13 | } | |
| 14 | } |