DBDiff\DB\Data\ArrayDiff::getResults PHP Method

getResults() public method

public getResults ( )
    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;
    }