| 1 | <?php |
||
| 25 | class ResolvedCommand |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var Command |
||
| 29 | */ |
||
| 30 | private $command; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var RawArgs |
||
| 34 | */ |
||
| 35 | private $args; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Creates a new resolved command. |
||
| 39 | * |
||
| 40 | * @param Command $command The command. |
||
| 41 | * @param Args $args The console arguments. |
||
| 42 | */ |
||
| 43 | 223 | public function __construct(Command $command, Args $args) |
|
| 44 | { |
||
| 45 | 223 | $this->command = $command; |
|
| 46 | 223 | $this->args = $args; |
|
|
|
|||
| 47 | 223 | } |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Returns the command. |
||
| 51 | * |
||
| 52 | * @return Command The command. |
||
| 53 | */ |
||
| 54 | 223 | public function getCommand() |
|
| 58 | |||
| 59 | /** |
||
| 60 | * Returns the parsed console arguments. |
||
| 61 | * |
||
| 62 | * @return Args The parsed console arguments. |
||
| 63 | */ |
||
| 64 | 42 | public function getArgs() |
|
| 68 | } |
||
| 69 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..