diff() public méthode

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