1 | <?php |
||
7 | class MediaInfoCommandRunner |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $filePath; |
||
13 | |||
14 | /** |
||
15 | * @var ProcessBuilder |
||
16 | */ |
||
17 | protected $processBuilder; |
||
18 | |||
19 | /** |
||
20 | * @var Process |
||
21 | */ |
||
22 | protected $processAsync = null; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $command = 'mediainfo'; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $arguments = array('--OUTPUT=XML', '-f'); |
||
33 | |||
34 | /** |
||
35 | * @param string $filePath |
||
36 | * @param array $arguments |
||
37 | * @param ProcessBuilder $processBuilder |
||
38 | */ |
||
39 | public function __construct( |
||
62 | |||
63 | /** |
||
64 | * @throws \RuntimeException |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function run() |
||
81 | |||
82 | /** |
||
83 | * Asynchronously start mediainfo operation. |
||
84 | * Make call to MediaInfoCommandRunner::wait() afterwards to receive output. |
||
85 | */ |
||
86 | public function start() |
||
94 | |||
95 | /** |
||
96 | * Blocks until call is complete. |
||
97 | * |
||
98 | * @throws \Exception If this function is called before start() |
||
99 | * @throws \RuntimeException |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | public function wait() |
||
118 | } |
||
119 |
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..