- \Somnambulist\Components\Collection\Behaviours\Compare\DiffValues
- \Somnambulist\Components\Collection\Behaviours\Compare\Intersect
- \Somnambulist\Components\Collection\Behaviours\Compare\DiffKeys
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. |
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. |
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. |