class Thumbnail extends File (View source)

Properties

protected array $data Model Data from BaseModel
protected string $contents The file contents from File
protected FileMetadata $metadata File Metadata from File

Methods

__construct(array $data, string $contents)

Create a new File instance

from File
array
getData()

Get the Model data

from BaseModel
mixed
getDataProperty(string $property)

Get Data Property

from BaseModel
mixed|null
__get(string $property)

Handle calls to undefined properties.

from BaseModel
mixed|null
__set(string $property, string $value)

Handle calls to undefined properties.

from BaseModel
getMetadata()

The metadata for the file

from File
string
getContents()

Get the file contents

from File

Details

in File at line line 28
__construct(array $data, string $contents)

Create a new File instance

Parameters

array $data
string $contents

in BaseModel at line line 29
array getData()

Get the Model data

Return Value

array

in BaseModel at line line 41
mixed getDataProperty(string $property)

Get Data Property

Parameters

string $property

Return Value

mixed

in BaseModel at line line 56
mixed|null __get(string $property)

Handle calls to undefined properties.

Check whether an item with the key, same as the property, is available on the data property.

Parameters

string $property

Return Value

mixed|null

in BaseModel at line line 75
mixed|null __set(string $property, string $value)

Handle calls to undefined properties.

Sets an item with the defined value on the data property.

Parameters

string $property
string $value

Return Value

mixed|null

in File at line line 40
FileMetadata getMetadata()

The metadata for the file

Return Value

FileMetadata

in File at line line 50
string getContents()

Get the file contents

Return Value

string