FormatList
in package
Holds a list of image formats.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- find() : Format|null
- Get a format given its ID.
- getAll() : array<string|int, Format>
- getAllIDs() : array<string|int, string>
Properties
$formats
private
array<string|int, Format>
$formats
Methods
__construct()
public
__construct(array<string|int, mixed> $formats) : mixed
Parameters
- $formats : array<string|int, mixed>
find()
Get a format given its ID.
public
find(Format|string $format) : Format|null
Parameters
- $format : Format|string
-
the format (a Format instance of a format ID)
Return values
Format|nullgetAll()
public
getAll() : array<string|int, Format>
Return values
array<string|int, Format>getAllIDs()
public
getAllIDs() : array<string|int, string>