@@ 240-252 (lines=13) @@ | ||
237 | } |
|
238 | ||
239 | /** {@inheritdoc} */ |
|
240 | public function getDeletedDocuments() |
|
241 | { |
|
242 | $compare = function ($a, $b) { |
|
243 | $compareA = is_object($a) ? spl_object_hash($a) : $a; |
|
244 | $compareb = is_object($b) ? spl_object_hash($b) : $b; |
|
245 | return $compareA === $compareb ? 0 : ($compareA > $compareb ? 1 : -1); |
|
246 | }; |
|
247 | return array_values(array_udiff( |
|
248 | $this->snapshot, |
|
249 | $this->coll->toArray(), |
|
250 | $compare |
|
251 | )); |
|
252 | } |
|
253 | ||
254 | /** {@inheritdoc} */ |
|
255 | public function getInsertDiff() |
|
@@ 265-277 (lines=13) @@ | ||
262 | } |
|
263 | ||
264 | /** {@inheritdoc} */ |
|
265 | public function getInsertedDocuments() |
|
266 | { |
|
267 | $compare = function ($a, $b) { |
|
268 | $compareA = is_object($a) ? spl_object_hash($a) : $a; |
|
269 | $compareb = is_object($b) ? spl_object_hash($b) : $b; |
|
270 | return $compareA === $compareb ? 0 : ($compareA > $compareb ? 1 : -1); |
|
271 | }; |
|
272 | return array_values(array_udiff( |
|
273 | $this->coll->toArray(), |
|
274 | $this->snapshot, |
|
275 | $compare |
|
276 | )); |
|
277 | } |
|
278 | ||
279 | /** {@inheritdoc} */ |
|
280 | public function getOwner() |