Base class for file variations (i.e. image aliases).
Properties¶
                 $dirPath
            ¶
        $dirPath
            ¶
    
        
        Variation.php
                :
        49
                 
    
        The path to the file (for example "var/storage/images/test/199-2-eng-GB").
|  |  | 
                 $fileName
            ¶
        $fileName
            ¶
    
        
        Variation.php
                :
        42
                 
    
        The name of the file (for example "my_image.png").
|  |  | 
                 $fileSize
            ¶
        $fileSize
            ¶
    
        
        Variation.php
                :
        28
                 
    
        Number of bytes for current variation.
|  |  | 
                 $lastModified
            ¶
        $lastModified
            ¶
    
        
        Variation.php
                :
        63
                 
    
        When the variation was last modified.
|  |  | 
                 $mimeType
            ¶
        $mimeType
            ¶
    
        
        Variation.php
                :
        35
                 
    
        The MIME type (for example "image/png").
|  |  | 
                 $uri
            ¶
        $uri
            ¶
    
        
        Variation.php
                :
        56
                 
    
        Complete path + name of image file (for example "var/storage/images/test/199-2-eng-GB/apple.png").
|  |  | 
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        
        ValueObject.php
                :
        31
                 
    
        Construct object optionally with a set of 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> | [] | - | 
                 getProperties()
            ¶
getProperties()
            ¶
    
        
        ValueObject.php
                :
        54
                 
    
        Returns list of available properties' names.
|  |  | 
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>