Copied!

Variation

Variation.php : 21
Extends ValueObject

Base class for file variations (i.e. image aliases).

Properties

public $dirPath read-only

Variation.php
public string $dirPath

The path to the file (for example "var/storage/images/test/199-2-eng-GB")

public $fileName read-only

Variation.php
public string $fileName

The name of the file (for example "my_image.png")

public $fileSize read-only

Variation.php
public int $fileSize

Number of bytes for current variation

public $lastModified read-only

Variation.php
public DateTime $lastModified

When the variation was last modified

public $mimeType read-only

Variation.php
public string $mimeType

The MIME type (for example "image/png")

public $uri read-only

Variation.php
public string $uri

Complete path + name of image file (for example "var/storage/images/test/199-2-eng-GB/apple.png")

protected $dirPath

Variation.php : 49

The path to the file (for example "var/storage/images/test/199-2-eng-GB").

protected string $dirPath

protected $fileName

Variation.php : 42

The name of the file (for example "my_image.png").

protected string $fileName

protected $fileSize

Variation.php : 28

Number of bytes for current variation.

protected int $fileSize

protected $lastModified

Variation.php : 63

When the variation was last modified.

protected DateTime $lastModified

protected $mimeType

Variation.php : 35

The MIME type (for example "image/png").

protected string $mimeType

protected $uri

Variation.php : 56

Complete path + name of image file (for example "var/storage/images/test/199-2-eng-GB/apple.png").

protected string $uri

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

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

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

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

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

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

Used by attributes(), override to add dynamic properties

Parameters

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

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>