1 | <?php |
||
11 | class GaufretteAdapter implements IFileReader |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var Filesystem |
||
16 | */ |
||
17 | private $gaufrette; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $filePath; |
||
23 | |||
24 | /** |
||
25 | * @param Filesystem $gaufrette |
||
26 | * @param string $filePath |
||
27 | */ |
||
28 | public function __construct(Filesystem $gaufrette, $filePath) |
||
33 | |||
34 | /** |
||
35 | * @return mixed |
||
|
|||
36 | */ |
||
37 | public function read() |
||
44 | |||
45 | /** |
||
46 | * @param mixed $data |
||
47 | * @param int $mode |
||
48 | * @return int |
||
49 | */ |
||
50 | public function write($data, $mode = 0) |
||
60 | } |
||
61 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.