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(string $src, ?string $mimeType = null, null|list<string> $sizes = null, ?string $theme = null)
|
# |
public
static
|
fromArray(array<string, mixed> $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
|
# |