Méthode | Description | |
---|---|---|
__construct ( Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable $resources = [] ) | Creates a new collection. | |
add ( Puli\Repository\Api\Resource\PuliResource $resource ) | ||
clear ( ) | ||
count ( ) | ||
get ( $key ) | ||
getIterator ( $mode = ResourceCollectionIterator::KEY_AS_CURSOR ) | ||
getNames ( ) | ||
getPaths ( ) | ||
has ( $key ) | ||
isEmpty ( ) | ||
keys ( ) | ||
merge ( $resources ) | ||
offsetExists ( $key ) | ||
offsetGet ( $key ) | ||
offsetSet ( $key, $value ) | ||
offsetUnset ( $key ) | ||
remove ( $key ) | ||
replace ( $resources ) | ||
set ( $key, Puli\Repository\Api\Resource\PuliResource $resource ) | ||
toArray ( ) |
public __construct ( Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable $resources = [] ) | ||
$resources | Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable | The resources to store in the collection. |
public add ( Puli\Repository\Api\Resource\PuliResource $resource ) | ||
$resource | Puli\Repository\Api\Resource\PuliResource |
public getIterator ( $mode = ResourceCollectionIterator::KEY_AS_CURSOR ) |
public set ( $key, Puli\Repository\Api\Resource\PuliResource $resource ) | ||
$resource | Puli\Repository\Api\Resource\PuliResource |