1 | <?php |
||
7 | class CanNotMapParameterValue extends OutOfBoundsException |
||
8 | { |
||
9 | /** |
||
10 | * The command's class name. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | private $command; |
||
15 | |||
16 | /** |
||
17 | * The parameter's name. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | private $parameter; |
||
22 | |||
23 | /** |
||
24 | * Creates a new exception. |
||
25 | * |
||
26 | * @param string $command |
||
27 | * @param string $parameter |
||
28 | * @return static |
||
29 | */ |
||
30 | public static function forCommand($command, $parameter) |
||
38 | |||
39 | /** |
||
40 | * Returns class name of the command. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getCommand() |
||
48 | |||
49 | /** |
||
50 | * Returns the name of the parameter. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getParameter() |
||
58 | } |
||
59 |