1 | <?php |
||
10 | class Engine |
||
11 | { |
||
12 | /** |
||
13 | * @var FilesystemInterface |
||
14 | */ |
||
15 | protected $filesystem; |
||
16 | |||
17 | /** |
||
18 | * @var Encoder |
||
19 | */ |
||
20 | protected $encoder; |
||
21 | |||
22 | public function __construct(FilesystemInterface $filesystem, JsonEncoder $encoder) |
||
27 | |||
28 | /** |
||
29 | * Get the Filesystem instance. |
||
30 | * |
||
31 | * @return FilesystemInterface |
||
32 | */ |
||
33 | public function getFilesystem() |
||
37 | |||
38 | |||
39 | /** |
||
40 | * Get the EncoderInterface instance. |
||
41 | * |
||
42 | * @return EncoderInterface |
||
43 | */ |
||
44 | public function getEncoder() |
||
48 | |||
49 | /** |
||
50 | * Create a new DocumentStore. |
||
51 | * |
||
52 | * @param string $namespace |
||
53 | * @return DocumentStore |
||
54 | */ |
||
55 | public function createDocumentStore($namespace) |
||
59 | |||
60 | public function dropCollection($collection) |
||
64 | |||
65 | public function createCollection($collection) |
||
69 | |||
70 | public function truncateCollection($collection) |
||
75 | |||
76 | public function update($collection, array $criteria, array $updates, $multiple = false) |
||
84 | |||
85 | public function remove($collection, array $criteria, $multiple = false) |
||
91 | |||
92 | public function find($collection, array $criteria) |
||
102 | |||
103 | public function all($collection) |
||
114 | |||
115 | protected function path($collection, $id) |
||
119 | |||
120 | protected function onMatch($collection, $criteria, \Closure $closure, $multiple = false) |
||
142 | } |
||
143 |
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..