class Structure

Traits

Properties

protected array $timestamps from  Timestamps
protected $attributes
array $modified from  Accessors

Methods

serializeTimestamp($value)

No description

array
toArray()

Get the raw attributes

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(array $attributes = [])

No description

static bool
isModelRegistered(string $model)

No description

static bool
registerModel(string $model, bool $overwrite = true)

Register a model

static Model
resolveModel(mixed $id)

No description

string
model()

Gets the registered model for this structure

static Structure|null
retrieve(int $id, APIClient|null $client = null)

No description

getIdAttribute($id)

No description

getPublishedAttribute($published)

No description

getFieldsAttribute($fields = [])

No description

Details

in Timestamps at line 18
serializeTimestamp($value)

Parameters

$value

in Accessors at line 30
array toArray()

Get the raw attributes

Return Value

array

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 51
protected __construct(array $attributes = [])

Parameters

array $attributes

at line 60
static bool isModelRegistered(string $model)

Parameters

string $model

Return Value

bool

at line 76
static bool registerModel(string $model, bool $overwrite = true)

Register a model

Parameters

string $model
bool $overwrite

Return Value

bool

at line 100
static Model resolveModel(mixed $id)

Parameters

mixed $id

Return Value

Model

Exceptions

Exception

at line 113
string model()

Gets the registered model for this structure

Return Value

string

at line 123
static Structure|null retrieve(int $id, APIClient|null $client = null)

Parameters

int $id
APIClient|null $client

Return Value

Structure|null

at line 139
getIdAttribute($id)

Parameters

$id

at line 144
getPublishedAttribute($published)

Parameters

$published

at line 149
getFieldsAttribute($fields = [])

Parameters

$fields