PHP Class TeamTNT\TNTSearch\Support\Collection

Inheritance: implements Countabl\Countable, implements IteratorAggregat\IteratorAggregate
显示文件 Open project: teamtnt/tntsearch Class Usage Examples

Protected Properties

Property Type Description
$items

Public Methods

Method Description
__construct ( $items = [] )
count ( )
each ( callable $callback )
filter ( callable $callback = null )
get ( $key )
getIterator ( )
implode ( $glue )
isEmpty ( )
map ( callable $callback )
pluck ( $value, $key = null )
reduce ( callable $callback, $initial = null )
toArray ( )

Method Details

__construct() public method

public __construct ( $items = [] )

count() public method

public count ( )

each() public method

public each ( callable $callback )
$callback callable

filter() public method

public filter ( callable $callback = null )
$callback callable

get() public method

public get ( $key )

getIterator() public method

public getIterator ( )

implode() public method

public implode ( $glue )

isEmpty() public method

public isEmpty ( )

map() public method

public map ( callable $callback )
$callback callable

pluck() public method

public pluck ( $value, $key = null )

reduce() public method

public reduce ( callable $callback, $initial = null )
$callback callable

toArray() public method

public toArray ( )

Property Details

$items protected_oe property

protected $items