class ContentFile implements MediaUrlResolvable, JsonSerializable, Arrayable, Jsonable

Traits

Properties

protected array $timestamps from  Timestamps
protected array $attributes from  Accessors
array $modified from  Accessors
int|null $id
int|null $file
string|null $title
string|null $description

Methods

serializeTimestamp($value)

No description

toArray()

No description

mixed
__get(string $property)

No description

__set(string $property, mixed $value)

No description

bool
__isset(string $property)

No description

__unset(string $key)

No description

bool
offsetExists(string $property)

No description

mixed
offsetGet(string $property)

No description

mixed
offsetSet(string $property, mixed $value)

No description

void
offsetUnset(string $key)

No description

string
__toString()

No description

__construct($attributes = [])

No description

static ContentFile|null
cast(array|null $attributes = [])

No description

getIdAttribute($id)

No description

getFileAttribute($file)

No description

string
getPathAttribute()

No description

string|null
url(string|null $preset = null)

No description

jsonSerialize()

No description

toJson($options = 0)

No description

__debugInfo()

No description

Details

in Timestamps at line 18
serializeTimestamp($value)

Parameters

$value

at line 78
toArray()

in Accessors at line 39
mixed __get(string $property)

Parameters

string $property

Return Value

mixed

in Accessors at line 67
__set(string $property, mixed $value)

Parameters

string $property
mixed $value

in Accessors at line 97
bool __isset(string $property)

Parameters

string $property

Return Value

bool

in Accessors at line 105
__unset(string $key)

Parameters

string $key

in Accessors at line 116
bool offsetExists(string $property)

Parameters

string $property

Return Value

bool

in Accessors at line 127
mixed offsetGet(string $property)

Parameters

string $property

Return Value

mixed

in Accessors at line 137
mixed offsetSet(string $property, mixed $value)

Parameters

string $property
mixed $value

Return Value

mixed

in Accessors at line 146
void offsetUnset(string $key)

Parameters

string $key

Return Value

void

in Accessors at line 154
string __toString()

Return Value

string

at line 25
__construct($attributes = [])

Parameters

$attributes

at line 34
static ContentFile|null cast(array|null $attributes = [])

Parameters

array|null $attributes

Return Value

ContentFile|null

at line 43
getIdAttribute($id)

Parameters

$id

at line 50
getFileAttribute($file)

Parameters

$file

at line 57
string getPathAttribute()

Return Value

string

at line 66
string|null url(string|null $preset = null)

Parameters

string|null $preset

Return Value

string|null

at line 73
jsonSerialize()

at line 83
toJson($options = 0)

Parameters

$options

at line 88
__debugInfo()