PHP Trait Pinq\Iterators\Common\OrderedIterator

Author: Elliot Levin ([email protected])
Exibir arquivo Open project: timetoogo/pinq

Protected Properties

Property Type Description
$isAscendingArray boolean[]
$orderByFunctions callable[]

Public Methods

Method Description
isArrayCompatible ( ) : boolean
thenOrderBy ( callable $orderByFunction, boolean $isAscending ) : Pinq\Iterators\IOrderedIterator

Protected Methods

Method Description
__constructIterator ( callable $orderByFunction, $isAscending )
getSourceIterator ( ) : Pinq\Iterators\IIterator
sortMap ( Pinq\Iterators\IOrderedMap $map )

Method Details

__constructIterator() protected method

protected __constructIterator ( callable $orderByFunction, $isAscending )
$orderByFunction callable

getSourceIterator() abstract protected method

abstract protected getSourceIterator ( ) : Pinq\Iterators\IIterator
return Pinq\Iterators\IIterator

isArrayCompatible() final public method

final public isArrayCompatible ( ) : boolean
return boolean

sortMap() final protected method

final protected sortMap ( Pinq\Iterators\IOrderedMap $map )
$map Pinq\Iterators\IOrderedMap

thenOrderBy() final public method

final public thenOrderBy ( callable $orderByFunction, boolean $isAscending ) : Pinq\Iterators\IOrderedIterator
$orderByFunction callable
$isAscending boolean
return Pinq\Iterators\IOrderedIterator

Property Details

$isAscendingArray protected_oe property

protected boolean[] $isAscendingArray
return boolean[]

$orderByFunctions protected_oe property

protected callable[] $orderByFunctions
return callable[]