class Priority (View source)

Methods

public static 
merge(array $mine, MutableConfigCollectionInterface $theirs)

Merges an array of values into a collection

public static 
array
mergeArray(array $highPriority, array $lowPriority)

Deep merges a high priorty array into a lower priority array, overwriting duplicate keys. If the keys are integers, then the merges acts like array_merge() and adds a new item.

protected static 
array
normaliseItem(array $item)

Returns a normalised array with value/metadata keys

Details

static MutableConfigCollectionInterface merge(array $mine, MutableConfigCollectionInterface $theirs)

Merges an array of values into a collection

Parameters

array $mine

Map of key to array with value and metadata sub-keys

MutableConfigCollectionInterface $theirs

Return Value

MutableConfigCollectionInterface

static array mergeArray(array $highPriority, array $lowPriority)

Deep merges a high priorty array into a lower priority array, overwriting duplicate keys. If the keys are integers, then the merges acts like array_merge() and adds a new item.

Parameters

array $highPriority
array $lowPriority

Return Value

array

static protected array normaliseItem(array $item)

Returns a normalised array with value/metadata keys

Parameters

array $item

Return Value

array