@@ 251-263 (lines=13) @@ | ||
248 | } |
|
249 | ||
250 | /** {@inheritdoc} */ |
|
251 | public function getDeletedDocuments() |
|
252 | { |
|
253 | $compare = static function ($a, $b) { |
|
254 | $compareA = is_object($a) ? spl_object_hash($a) : $a; |
|
255 | $compareb = is_object($b) ? spl_object_hash($b) : $b; |
|
256 | return $compareA === $compareb ? 0 : ($compareA > $compareb ? 1 : -1); |
|
257 | }; |
|
258 | return array_values(array_udiff( |
|
259 | $this->snapshot, |
|
260 | $this->coll->toArray(), |
|
261 | $compare |
|
262 | )); |
|
263 | } |
|
264 | ||
265 | /** {@inheritdoc} */ |
|
266 | public function getInsertDiff() |
|
@@ 278-290 (lines=13) @@ | ||
275 | } |
|
276 | ||
277 | /** {@inheritdoc} */ |
|
278 | public function getInsertedDocuments() |
|
279 | { |
|
280 | $compare = static function ($a, $b) { |
|
281 | $compareA = is_object($a) ? spl_object_hash($a) : $a; |
|
282 | $compareb = is_object($b) ? spl_object_hash($b) : $b; |
|
283 | return $compareA === $compareb ? 0 : ($compareA > $compareb ? 1 : -1); |
|
284 | }; |
|
285 | return array_values(array_udiff( |
|
286 | $this->coll->toArray(), |
|
287 | $this->snapshot, |
|
288 | $compare |
|
289 | )); |
|
290 | } |
|
291 | ||
292 | /** {@inheritdoc} */ |
|
293 | public function getOwner() |