@@ 266-278 (lines=13) @@ | ||
263 | } |
|
264 | ||
265 | /** {@inheritdoc} */ |
|
266 | public function getDeletedDocuments() |
|
267 | { |
|
268 | $compare = function ($a, $b) { |
|
269 | $compareA = is_object($a) ? spl_object_hash($a) : $a; |
|
270 | $compareb = is_object($b) ? spl_object_hash($b) : $b; |
|
271 | return $compareA === $compareb ? 0 : ($compareA > $compareb ? 1 : -1); |
|
272 | }; |
|
273 | return array_values(array_udiff( |
|
274 | $this->snapshot, |
|
275 | $this->coll->toArray(), |
|
276 | $compare |
|
277 | )); |
|
278 | } |
|
279 | ||
280 | /** {@inheritdoc} */ |
|
281 | public function getInsertDiff() |
|
@@ 291-303 (lines=13) @@ | ||
288 | } |
|
289 | ||
290 | /** {@inheritdoc} */ |
|
291 | public function getInsertedDocuments() |
|
292 | { |
|
293 | $compare = function ($a, $b) { |
|
294 | $compareA = is_object($a) ? spl_object_hash($a) : $a; |
|
295 | $compareb = is_object($b) ? spl_object_hash($b) : $b; |
|
296 | return $compareA === $compareb ? 0 : ($compareA > $compareb ? 1 : -1); |
|
297 | }; |
|
298 | return array_values(array_udiff( |
|
299 | $this->coll->toArray(), |
|
300 | $this->snapshot, |
|
301 | $compare |
|
302 | )); |
|
303 | } |
|
304 | ||
305 | /** {@inheritdoc} */ |
|
306 | public function getOwner() |