final | |
|---|---|
readonly | |
implements |
JsonSerializable, 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
|
toArray(): array
|
# |
public
|
jsonSerialize(): template-type<self, Arrayable, 'T'>
|
# |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$src
|
# |
public
|
null|non-empty-string
|
$mimeType
|
# |
public
|
null|list<non-empty-string>
|
$sizes
|
# |
public
|
null|'dark'|'light'
|
$theme
|
# |