Documentation

AbstractFileCollection extends AbstractLazyCollection implements FileCollectionInterface

Collection of objects stored into a filesystem.

Tags
template
template
extends
implements

Table of Contents

Interfaces

FileCollectionInterface
Collection of objects stored into a filesystem.

Properties

$collection  : mixed
$createObjectFunction  : callable
$filterFunction  : callable|null
$flags  : int
$iterator  : RecursiveDirectoryIterator|RecursiveUniformResourceIterator
$nestingLimit  : int
$path  : string

Methods

chunk()  : array<string|int, mixed>
Split collection into chunks.
getPath()  : string
jsonSerialize()  : array<string|int, mixed>
matching()  : ArrayCollection
reverse()  : CollectionInterface
Reverse the order of the items.
select()  : CollectionInterface
Select items from collection.
shuffle()  : CollectionInterface
Shuffle items.
unselect()  : CollectionInterface
Un-select items from collection.
__construct()  : mixed
addFilter()  : $this
createObject()  : object
doInitialize()  : mixed
{@inheritDoc}
doInitializeByIterator()  : array<string|int, mixed>
doInitializeChildren()  : array<string|int, mixed>
setIterator()  : void

Properties

$collection

protected mixed $collection
Tags
par

ArrayCollection

phpstan-var

ArrayCollection<TKey,T>

Methods

chunk()

Split collection into chunks.

public chunk(mixed $size) : array<string|int, mixed>
Parameters
$size : mixed

Size of each chunk.

Return values
array<string|int, mixed>

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Attributes
#[ReturnTypeWillChange]
Return values
array<string|int, mixed>

addFilter()

protected addFilter(callable $filterFunction) : $this
Parameters
$filterFunction : callable
Return values
$this

createObject()

protected createObject(RecursiveDirectoryIterator $file) : object
Parameters
$file : RecursiveDirectoryIterator
Return values
object

doInitializeByIterator()

protected doInitializeByIterator(SeekableIterator $iterator, int $nestingLimit) : array<string|int, mixed>
Parameters
$iterator : SeekableIterator
$nestingLimit : int
Tags
phpstan-param

SeekableIterator<int,T> $iterator

Return values
array<string|int, mixed>

doInitializeChildren()

protected doInitializeChildren(array<string|int, mixed> $children, int $nestingLimit) : array<string|int, mixed>
Parameters
$children : array<string|int, mixed>
$nestingLimit : int
Return values
array<string|int, mixed>

        
On this page

Search results