1 | <?php |
||
15 | class Execs |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $options = []; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $execs = []; |
||
26 | |||
27 | /** |
||
28 | * @var AbstractCompressor |
||
29 | */ |
||
30 | private $compressor; |
||
31 | |||
32 | /** |
||
33 | * @var string|null |
||
34 | */ |
||
35 | private $fileName; |
||
36 | |||
37 | /** |
||
38 | * Execs constructor. |
||
39 | * |
||
40 | * @param string $command [optional] |
||
|
|||
41 | */ |
||
42 | public function __construct($command = null) |
||
46 | |||
47 | /** |
||
48 | * @param string $type of compression: "gz" | "gzip" | "none" | null |
||
49 | */ |
||
50 | public function setCompression($type) |
||
54 | |||
55 | /** |
||
56 | * @return AbstractCompressor |
||
57 | */ |
||
58 | public function getCompressor() |
||
66 | |||
67 | /** |
||
68 | * @param string $fileName output filename, will redirect mysqldump data into |
||
69 | */ |
||
70 | public function setFileName($fileName) |
||
74 | |||
75 | /** |
||
76 | * @return string|null |
||
77 | */ |
||
78 | public function getFileName() |
||
82 | |||
83 | /** |
||
84 | * @param string $options |
||
85 | */ |
||
86 | public function addOptions($options) |
||
90 | |||
91 | /** |
||
92 | * @param string $options |
||
93 | */ |
||
94 | public function add($options) |
||
98 | |||
99 | /** |
||
100 | * @param string $separator |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getBaseCommand($separator = '>') |
||
115 | |||
116 | /** |
||
117 | * @return array |
||
118 | */ |
||
119 | public function getCommands() |
||
134 | } |
||
135 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.