| 1 | <?php |
||
| 16 | class InvalidCommandException extends InvalidArgumentException |
||
| 17 | { |
||
| 18 | private const MESSAGE_PATTERN = "Command '%s' is not accepted by Configurator"; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * InvalidCommandException constructor. |
||
| 22 | * @param CommandInterface $command |
||
| 23 | * @param int $code |
||
| 24 | * @param Throwable|null $previous |
||
| 25 | */ |
||
| 26 | public function __construct(CommandInterface $command, int $code = 0, Throwable $previous = null) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $commandClass |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | private static function generateMessage(string $commandClass) |
||
| 48 | } |
||
| 49 |