final | |
|---|---|
readonly | |
implements |
Arrayable<array{src: non-empty-string, mimeType?: non-empty-string, sizes?: list<non-empty-string>, theme?: ('dark'|'light')}> |
An optionally-sized icon that can be displayed in a user interface.
| Methods | ||
|---|---|---|
public
|
__construct(
non-empty-string $src,
null|non-empty-string $mimeType = null,
null|list<non-empty-string> $sizes = null,
null|'dark'|'light' $theme = null,
)
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$src
|
# |
public
|
null|non-empty-string
|
$mimeType
|
# |
public
|
null|list<non-empty-string>
|
$sizes
|
# |
public
|
null|'dark'|'light'
|
$theme
|
# |