1 | <?php |
||
10 | class Driver implements BaseDriver |
||
11 | { |
||
12 | /** |
||
13 | * @var MongoDBClient |
||
14 | */ |
||
15 | private $connection; |
||
16 | |||
17 | 2 | protected function __construct(BaseDriver $connection) |
|
21 | |||
22 | /** |
||
23 | * @param string $database |
||
24 | * @param string $server |
||
25 | * @param array $options |
||
26 | * @param array $driverOptions |
||
27 | * |
||
28 | * @return Driver |
||
29 | * |
||
30 | * @throws DriverException |
||
31 | */ |
||
32 | 1 | public static function factoryLegacy( |
|
47 | |||
48 | /** |
||
49 | * @param string $database |
||
50 | * @param string $uri |
||
51 | * @param array $uriOptions |
||
52 | * @param array $driverOptions |
||
53 | * |
||
54 | * @return Driver |
||
55 | * |
||
56 | * @throws DriverException |
||
57 | */ |
||
58 | 1 | public static function factory( |
|
72 | |||
73 | /** |
||
74 | * @return Driver |
||
75 | */ |
||
76 | 2 | public function getConnection() |
|
80 | |||
81 | /** |
||
82 | * @param \Iterator $cursor |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | 1 | public function fetch(\Iterator $cursor) |
|
90 | |||
91 | /** |
||
92 | * @param array $collection |
||
93 | * @param array $query |
||
94 | * |
||
95 | * @return \Iterator |
||
96 | */ |
||
97 | 1 | public function find($collection, array $query = []) |
|
101 | |||
102 | /** |
||
103 | * @param Collection $collection |
||
104 | * |
||
105 | * @return array |
||
106 | */ |
||
107 | 1 | public function generateQuery(Collection $collection) |
|
111 | |||
112 | /** |
||
113 | * @param Collection $collection |
||
114 | * @param $document |
||
115 | * |
||
116 | * @return void |
||
117 | */ |
||
118 | 1 | public function insert($collection, $document) |
|
122 | |||
123 | 1 | public function update($collection, $criteria, $document) |
|
127 | |||
128 | /** |
||
129 | * @param string $collection |
||
130 | * @param array $criteria |
||
131 | */ |
||
132 | 1 | public function remove($collection, $criteria) |
|
136 | } |
||
137 |
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..