diff() public method

Get the items in the collection that are not present in the given items.
public diff ( mixed $items ) : static
$items mixed
return static
Example #1
0
 public function testDiffNull()
 {
     $c = new Collection(['id' => 1, 'first_word' => 'Hello']);
     $this->assertEquals(['id' => 1, 'first_word' => 'Hello'], $c->diff(null)->all());
 }
Example #2
0
 protected function getDeletedFiles()
 {
     return $this->baseline->diff($this->current);
 }