1 | <?php |
||
8 | class InvalidCommandException extends \Exception implements Exception |
||
9 | { |
||
10 | /** |
||
11 | * @var object |
||
12 | */ |
||
13 | protected $command; |
||
14 | |||
15 | /** |
||
16 | * @var ConstraintViolationListInterface |
||
17 | */ |
||
18 | protected $violations; |
||
19 | |||
20 | /** |
||
21 | * @param object $command |
||
22 | * @param ConstraintViolationListInterface $violations |
||
23 | * |
||
24 | * @return static |
||
25 | */ |
||
26 | 3 | public static function onCommand($command, ConstraintViolationListInterface $violations) |
|
38 | |||
39 | /** |
||
40 | * @return object |
||
41 | */ |
||
42 | 3 | public function getCommand() |
|
46 | |||
47 | /** |
||
48 | * @return ConstraintViolationListInterface |
||
49 | */ |
||
50 | 3 | public function getViolations() |
|
54 | } |
||
55 |