ResourceCollection implements Countable, Iterator, ArrayAccess
Table of Contents
Interfaces
- Countable
- Iterator
- ArrayAccess
Properties
- $resources : array<string|int, mixed>
Methods
- __construct() : mixed
- addResource() : self
- addResources() : self
- count() : int
- Countable
- current() : mixed
- getFiles() : array<string|int, mixed>
- getFolders() : array<string|int, mixed>
- getResources() : array<string|int, ResourceInterface>
- getTotalBytes() : int
- getTotalCount() : int
- getTotalFileCount() : int
- getTotalFolderCount() : int
- key() : int
- next() : void
- offsetExists() : bool
- offsetGet() : ResourceInterface|null
- offsetSet() : void
- Array Access
- offsetUnset() : void
- rewind() : void
- Iterator
- setResources() : self
- valid() : bool
Properties
$resources
protected
array<string|int, mixed>
$resources
= []
Tags
Methods
__construct()
public
__construct([array<string|int, ResourceInterface> $resources = [] ]) : mixed
Parameters
- $resources : array<string|int, ResourceInterface> = []
addResource()
public
addResource(ResourceInterface $resource) : self
Parameters
- $resource : ResourceInterface
Return values
selfaddResources()
public
addResources(array<string|int, mixed> $resources) : self
Parameters
- $resources : array<string|int, mixed>
Return values
selfcount()
Countable
public
count() : int
Return values
intcurrent()
public
current() : mixed
Attributes
- #[ReturnTypeWillChange]
getFiles()
public
getFiles() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getFolders()
public
getFolders() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getResources()
public
getResources() : array<string|int, ResourceInterface>
Return values
array<string|int, ResourceInterface>getTotalBytes()
public
getTotalBytes() : int
Return values
intgetTotalCount()
public
getTotalCount() : int
Return values
intgetTotalFileCount()
public
getTotalFileCount() : int
Return values
intgetTotalFolderCount()
public
getTotalFolderCount() : int
Return values
intkey()
public
key() : int
Attributes
- #[ReturnTypeWillChange]
Return values
intnext()
public
next() : void
offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : ResourceInterface|null
Parameters
- $offset : mixed
Return values
ResourceInterface|nulloffsetSet()
Array Access
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
rewind()
Iterator
public
rewind() : void
setResources()
public
setResources(array<string|int, mixed> $resources) : self
Parameters
- $resources : array<string|int, mixed>
Return values
selfvalid()
public
valid() : bool