Class FileList
Representation of a list of request files.
-
ICanBoogie\HTTP\FileList
implements
ArrayAccess,
IteratorAggregate,
Countable
Methods summary
public
__construct( array $files
= [] )
public
offsetExists( string $id
)
: boolean
Checks if a file exists.
Parameters
Returns
boolean
Implementation of
ArrayAccess::offsetExists()
public
offsetGet( string $id
)
: ICanBoogie\HTTP\File
|null
Returns a file.
Parameters
Returns
Implementation of
ArrayAccess::offsetGet()
public
offsetSet( string $id
, string|array|ICanBoogie\HTTP\File
$file
)
Adds a file.
Parameters
Implementation of
ArrayAccess::offsetSet()
public
offsetUnset( string $id
)
Removes a file.
Parameters
Implementation of
ArrayAccess::offsetUnset()
public
getIterator( void )
: ArrayIterator
Returns
ArrayIterator
Inheritdoc
Implementation of
IteratorAggregate::getIterator()
public
count( void )
: integer
Returns the number of files in the collection.
Returns the number of files in the collection.
Returns
integer
Implementation of
Countable::count()