1 | <?php |
||
3 | abstract class RunCommandLineMethodOnModule extends Object |
||
4 | { |
||
5 | |||
6 | /** |
||
7 | * root dir for module |
||
8 | * e.g. /var/www/modules/mymodule |
||
9 | * no final slash |
||
10 | * |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $rootDirForModule = ''; |
||
14 | |||
15 | /** |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $commands = []; |
||
20 | |||
21 | public function setRootDirForModule($rootDirForModule) |
||
25 | |||
26 | /** |
||
27 | * |
||
28 | * |
||
29 | * @param string |
||
30 | */ |
||
31 | public function setCommand(array $commands) |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | * |
||
41 | * @param string |
||
42 | */ |
||
43 | public function addCommands(string $command) |
||
49 | |||
50 | public function __construct($rootDirForModule = '') |
||
54 | |||
55 | public function run() |
||
65 | |||
66 | /** |
||
67 | * runs a command from the root dir or the module |
||
68 | */ |
||
69 | protected function runCommand() |
||
80 | |||
81 | public static function CheckCommandExists($cmd) |
||
85 | } |
||
86 |
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..