PHP Class Ouzo\Utilities\FluentArray

Afficher le fichier Open project: letsdrink/ouzo Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $_array )
filter ( $function )
filterByAllowedKeys ( $allowedKeys )
filterByKeys ( $function )
filterNotBlank ( )
firstOr ( $default )
flatten ( )
from ( $_array )
groupBy ( $selector )
intersect ( array $array )
keys ( )
limit ( $number )
map ( $function )
mapEntries ( $function )
mapKeys ( $function )
reverse ( )
skip ( $number )
sort ( $comparator )
toArray ( )
toJson ( )
toMap ( $keyFunction, $valueFunction = null )
unique ( )
uniqueBy ( $selector ) : FluentArray
values ( )

Method Details

__construct() public méthode

public __construct ( $_array )

filter() public méthode

public filter ( $function )

filterByAllowedKeys() public méthode

public filterByAllowedKeys ( $allowedKeys )

filterByKeys() public méthode

public filterByKeys ( $function )

filterNotBlank() public méthode

public filterNotBlank ( )

firstOr() public méthode

public firstOr ( $default )

flatten() public méthode

public flatten ( )

from() public static méthode

public static from ( $_array )

groupBy() public méthode

public groupBy ( $selector )

intersect() public méthode

public intersect ( array $array )
$array array

keys() public méthode

public keys ( )

limit() public méthode

public limit ( $number )

map() public méthode

public map ( $function )

mapEntries() public méthode

public mapEntries ( $function )

mapKeys() public méthode

public mapKeys ( $function )

reverse() public méthode

public reverse ( )

skip() public méthode

public skip ( $number )

sort() public méthode

public sort ( $comparator )

toArray() public méthode

public toArray ( )

toJson() public méthode

public toJson ( )

toMap() public méthode

public toMap ( $keyFunction, $valueFunction = null )

unique() public méthode

public unique ( )

uniqueBy() public méthode

public uniqueBy ( $selector ) : FluentArray
$selector
Résultat FluentArray

values() public méthode

public values ( )