\League\FactoryMuffinArr

This is the array utilities class.

This class contains some array helpers we use internally.

Summary

Methods
Properties
Constants
get()
has()
add()
remove()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get()

get(array  $array, string  $key) : mixed

Get an item from an array.

Parameters

array $array
string $key

Returns

mixed

has()

has(array  $array, mixed  $item) : boolean

Is the item in the array.

Parameters

array $array
mixed $item

Returns

boolean

add()

add(array  $array, object  $object) : void

Add an object to an array.

Parameters

array $array
object $object

remove()

remove(array  $array, object  $object) : void

Remove an object from an array.

Parameters

array $array
object $object