Copied!

Thumbnail

Thumbnail.php : 19
Extends ValueObject

The base class for all value objects and structs.

Properties

protected $height

Thumbnail.php : 28
protected int|null $height = null

protected $mimeType

Thumbnail.php : 30
protected string|null $mimeType = null

protected $resource

Thumbnail.php : 24

Can be target URL or Base64 data (or anything else).

protected string $resource

protected $width

Thumbnail.php : 26
protected int|null $width = null

Methods

public__construct()

ValueObject.php : 32

Construct object optionally with a set of properties.

public __construct([array<string, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string, mixed> [] -

protectedgetProperties()

ValueObject.php : 53

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Attributes
#[Ignore]