File
class File extends BaseModel (View source)
Properties
protected array | $data | Model Data | from BaseModel |
protected string | $contents | The file contents | |
protected FileMetadata | $metadata | File Metadata |
Methods
__construct(array $data, string $contents)
Create a new File instance
mixed|null
__set(string $property, string $value)
Handle calls to undefined properties.
from BaseModel
getMetadata()
The metadata for the file
string
getContents()
Get the file contents
Details
at line line 28
__construct(array $data, string $contents)
Create a new File instance
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.
mixed|null
__set(string $property, string $value)
Handle calls to undefined properties.
Sets an item with the defined value on the data property.
at line line 40
FileMetadata
getMetadata()
The metadata for the file
at line line 50
string
getContents()
Get the file contents