Interface

TRex\Core\IObjectsComparator

interface IObjectsComparator

Interface IObjectsComparator

Methods

IObjects merge(IObjects $objects)

Merges a series of IObjects.

IObjects mergeA(IObjects $objects)

Merges a series of IObjects.

IObjects diff(IObjects $objects)

Compares current IObject values with the IObject params.

IObjects diffA(IObjects $objects)

Compares current IObject values and keys with the IObject params.

IObjects diffK(IObjects $objects)

Compares current IObject keys with the IObject params.

IObjects intersect(IObjects $objects)

Compares current IObject values with the IObject params.

IObjects intersectA(IObjects $objects)

Compares current IObject values and keys with the IObject params.

IObjects intersectK(IObjects $objects)

Compares current IObject keys with the IObject params.

Details

at line 19
public IObjects merge(IObjects $objects)

Merges a series of IObjects.

Does not preserve keys.

Parameters

IObjects $objects

Return Value

IObjects

at line 28
public IObjects mergeA(IObjects $objects)

Merges a series of IObjects.

Preserves keys.

Parameters

IObjects $objects

Return Value

IObjects

at line 37
public IObjects diff(IObjects $objects)

Compares current IObject values with the IObject params.

Returns all the values of current IObject that are not present in the IObject params.

Parameters

IObjects $objects

Return Value

IObjects

at line 46
public IObjects diffA(IObjects $objects)

Compares current IObject values and keys with the IObject params.

Returns all the values of current IObject that are not present in the IObject params.

Parameters

IObjects $objects

Return Value

IObjects

at line 55
public IObjects diffK(IObjects $objects)

Compares current IObject keys with the IObject params.

Returns all the values of current IObject that are not present in the IObject params.

Parameters

IObjects $objects

Return Value

IObjects

at line 64
public IObjects intersect(IObjects $objects)

Compares current IObject values with the IObject params.

Returns all the values of current IObject that are present in the IObject params.

Parameters

IObjects $objects

Return Value

IObjects

at line 73
public IObjects intersectA(IObjects $objects)

Compares current IObject values and keys with the IObject params.

Returns all the values of current IObject that are present in the IObject params.

Parameters

IObjects $objects

Return Value

IObjects

at line 82
public IObjects intersectK(IObjects $objects)

Compares current IObject keys with the IObject params.

Returns all the values of current IObject that are present in the IObject params.

Parameters

IObjects $objects

Return Value

IObjects