public function getResults()
{
// New
foreach ($this->sourceBucket as $entry) {
if (is_null($entry)) {
continue;
}
$this->diffBucket[] = ['keys' => array_only($entry, $this->key), 'diff' => new DiffOpAdd($entry)];
}
// Deleted
foreach ($this->targetBucket as $entry) {
if (is_null($entry)) {
continue;
}
$this->diffBucket[] = ['keys' => array_only($entry, $this->key), 'diff' => new DiffOpRemove($entry)];
}
return $this->diffBucket;
}