1 | <?php |
||
19 | abstract class AbstractDevice |
||
20 | { |
||
21 | /** |
||
22 | * The process builder object |
||
23 | * |
||
24 | * @var Process |
||
25 | */ |
||
26 | private $builder; |
||
27 | |||
28 | /** |
||
29 | * The arguments object |
||
30 | * |
||
31 | * @var ProcessArguments |
||
32 | */ |
||
33 | private $arguments; |
||
34 | |||
35 | /** |
||
36 | * Create abstract device object |
||
37 | * |
||
38 | * @param ProcessBuilder $builder |
||
39 | * @param ProcessArguments $arguments |
||
40 | */ |
||
41 | public function __construct(ProcessBuilder $builder, ProcessArguments $arguments) |
||
46 | |||
47 | /** |
||
48 | * Get argument value |
||
49 | * |
||
50 | * @param string $name |
||
51 | * |
||
52 | * @return null|string |
||
53 | */ |
||
54 | protected function getArgumentValue($name) |
||
63 | |||
64 | /** |
||
65 | * Set argument |
||
66 | * |
||
67 | * @param string $argument |
||
68 | * |
||
69 | * @return $this |
||
70 | */ |
||
71 | protected function setArgument($argument) |
||
77 | |||
78 | /** |
||
79 | * Create process object |
||
80 | * |
||
81 | * @param string $inputFile |
||
82 | * |
||
83 | * @throws \RuntimeException |
||
84 | * |
||
85 | * @return Process |
||
86 | */ |
||
87 | public function createProcess($inputFile) |
||
98 | } |
||
99 |
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..