Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 2.92 KB

comparable.md

File metadata and controls

41 lines (27 loc) · 2.92 KB

Table of contents


Class: \Somnambulist\Components\Collection\Behaviours\Compare\DiffValues

Trait DiffValues

Visibility Function
public diff(\mixed $items) : \Somnambulist\Components\Collection\Collection/static
Get the items in the collection that are not present in the given items.
public diffAssoc(\mixed $items) : \Somnambulist\Components\Collection\Collection/static
Get the items in the collection whose keys and values are not present in the given items.
public diffAssocUsing(\mixed $items, \callable $callback) : \Somnambulist\Components\Collection\Collection/static
Get the items in the collection whose keys and values are not present in the given items.
public diffUsing(\mixed $items, \callable $callback) : \Somnambulist\Components\Collection\Collection/static
Get the items in the collection that are not present in the given items.

Class: \Somnambulist\Components\Collection\Behaviours\Compare\Intersect

Trait Intersect

Visibility Function
public intersect(\mixed $items) : \Somnambulist\Components\Collection\Collection/static
Intersect the collection with the given items.
public intersectByKeys(\mixed $items) : \Somnambulist\Components\Collection\Collection/static
Intersect the collection with the given items by key.

Class: \Somnambulist\Components\Collection\Behaviours\Compare\DiffKeys

Trait DiffKeys

Visibility Function
public diffKeys(\mixed $items) : \Somnambulist\Components\Collection\Collection/static
Get the items in the collection whose keys are not present in the given items.
public diffKeysUsing(\mixed $items, \callable $callback) : \Somnambulist\Components\Collection\Collection/static
Get the items in the collection whose keys are not present in the given items.