PHP 인터페이스 Pinq\ICollection

저자: Elliot Levin ([email protected])
상속: extends pinq\ITraversable
파일 보기 프로젝트 열기: timetoogo/pinq 0 사용 예제들

공개 메소드들

메소드 설명
addRange ( array | Traversable $values ) : void Adds a range of values to the collection.
append ( $values ) : pinq\ICollection {@inheritDoc}
apply ( callable $function ) : void Walks the elements with the supplied function.
clear ( ) : void Removes all the values.
difference ( $values ) : pinq\ICollection {@inheritDoc}
except ( $values ) : pinq\ICollection {@inheritDoc}
getSource ( ) : pinq\ICollection {@inheritDoc}
groupBy ( callable $function ) : pinq\ICollection {@inheritDoc}
groupJoin ( $values ) : Pinq\Interfaces\IJoiningOnCollection {@inheritDoc}
indexBy ( callable $function ) : pinq\ICollection {@inheritDoc}
intersect ( $values ) : pinq\ICollection {@inheritDoc}
join ( $values ) : Pinq\Interfaces\IJoiningOnCollection {@inheritDoc}
keys ( ) : pinq\ICollection {@inheritDoc}
orderBy ( callable $function, $direction ) : Pinq\Interfaces\IOrderedCollection {@inheritDoc}
orderByAscending ( callable $function ) : Pinq\Interfaces\IOrderedCollection {@inheritDoc}
orderByDescending ( callable $function ) : Pinq\Interfaces\IOrderedCollection {@inheritDoc}
reindex ( ) : pinq\ICollection {@inheritDoc}
remove ( mixed $value ) : void Removes all occurrences of the supplied value from the collection.
removeRange ( array | Traversable $values ) : void Removes all occurrences of the supplied values from the collection.
removeWhere ( callable $predicate ) : void Removes all the values matched by the predicate.
select ( callable $function ) : pinq\ICollection {@inheritDoc}
selectMany ( callable $function ) : pinq\ICollection {@inheritDoc}
skip ( $amount ) : pinq\ICollection {@inheritDoc}
slice ( $start, $amount ) : pinq\ICollection {@inheritDoc}
take ( $amount ) : pinq\ICollection {@inheritDoc}
union ( $values ) : pinq\ICollection {@inheritDoc}
unique ( ) : pinq\ICollection {@inheritDoc}
where ( callable $predicate ) : pinq\ICollection {@inheritDoc}
whereIn ( $values ) : pinq\ICollection {@inheritDoc}

메소드 상세

addRange() 공개 메소드

The collection will be reindexed.
public addRange ( array | Traversable $values ) : void
$values array | Traversable The values to add
리턴 void

append() 공개 메소드

{@inheritDoc}
public append ( $values ) : pinq\ICollection
리턴 pinq\ICollection

apply() 공개 메소드

Walks the elements with the supplied function.
public apply ( callable $function ) : void
$function callable
리턴 void

clear() 공개 메소드

Removes all the values.
public clear ( ) : void
리턴 void

difference() 공개 메소드

{@inheritDoc}
public difference ( $values ) : pinq\ICollection
리턴 pinq\ICollection

except() 공개 메소드

{@inheritDoc}
public except ( $values ) : pinq\ICollection
리턴 pinq\ICollection

getSource() 공개 메소드

{@inheritDoc}
public getSource ( ) : pinq\ICollection
리턴 pinq\ICollection

groupBy() 공개 메소드

{@inheritDoc}
public groupBy ( callable $function ) : pinq\ICollection
$function callable
리턴 pinq\ICollection

groupJoin() 공개 메소드

{@inheritDoc}
public groupJoin ( $values ) : Pinq\Interfaces\IJoiningOnCollection
리턴 Pinq\Interfaces\IJoiningOnCollection

indexBy() 공개 메소드

{@inheritDoc}
public indexBy ( callable $function ) : pinq\ICollection
$function callable
리턴 pinq\ICollection

intersect() 공개 메소드

{@inheritDoc}
public intersect ( $values ) : pinq\ICollection
리턴 pinq\ICollection

join() 공개 메소드

{@inheritDoc}
public join ( $values ) : Pinq\Interfaces\IJoiningOnCollection
리턴 Pinq\Interfaces\IJoiningOnCollection

keys() 공개 메소드

{@inheritDoc}
public keys ( ) : pinq\ICollection
리턴 pinq\ICollection

orderBy() 공개 메소드

{@inheritDoc}
public orderBy ( callable $function, $direction ) : Pinq\Interfaces\IOrderedCollection
$function callable
리턴 Pinq\Interfaces\IOrderedCollection

orderByAscending() 공개 메소드

{@inheritDoc}
public orderByAscending ( callable $function ) : Pinq\Interfaces\IOrderedCollection
$function callable
리턴 Pinq\Interfaces\IOrderedCollection

orderByDescending() 공개 메소드

{@inheritDoc}
public orderByDescending ( callable $function ) : Pinq\Interfaces\IOrderedCollection
$function callable
리턴 Pinq\Interfaces\IOrderedCollection

reindex() 공개 메소드

{@inheritDoc}
public reindex ( ) : pinq\ICollection
리턴 pinq\ICollection

remove() 공개 메소드

Removes all occurrences of the supplied value from the collection.
public remove ( mixed $value ) : void
$value mixed The value to remove
리턴 void

removeRange() 공개 메소드

Removes all occurrences of the supplied values from the collection.
public removeRange ( array | Traversable $values ) : void
$values array | Traversable The values to remove
리턴 void

removeWhere() 공개 메소드

Removes all the values matched by the predicate.
public removeWhere ( callable $predicate ) : void
$predicate callable
리턴 void

select() 공개 메소드

{@inheritDoc}
public select ( callable $function ) : pinq\ICollection
$function callable
리턴 pinq\ICollection

selectMany() 공개 메소드

{@inheritDoc}
public selectMany ( callable $function ) : pinq\ICollection
$function callable
리턴 pinq\ICollection

skip() 공개 메소드

{@inheritDoc}
public skip ( $amount ) : pinq\ICollection
리턴 pinq\ICollection

slice() 공개 메소드

{@inheritDoc}
public slice ( $start, $amount ) : pinq\ICollection
리턴 pinq\ICollection

take() 공개 메소드

{@inheritDoc}
public take ( $amount ) : pinq\ICollection
리턴 pinq\ICollection

union() 공개 메소드

{@inheritDoc}
public union ( $values ) : pinq\ICollection
리턴 pinq\ICollection

unique() 공개 메소드

{@inheritDoc}
public unique ( ) : pinq\ICollection
리턴 pinq\ICollection

where() 공개 메소드

{@inheritDoc}
public where ( callable $predicate ) : pinq\ICollection
$predicate callable
리턴 pinq\ICollection

whereIn() 공개 메소드

{@inheritDoc}
public whereIn ( $values ) : pinq\ICollection
리턴 pinq\ICollection