class ModelInfo implements Arrayable, ArrayAccess (View source)

internal  
 

Methods

__construct($class, $database, $table, $policy, $attributes, $relations, $events, $observers, $collection, $builder, $resource)

No description

toArray()

Convert the model info to an array.

bool
offsetExists(mixed $offset)

Determine if the given offset exists.

mixed
offsetGet(mixed $offset)

Get the value for a given offset.

void
offsetSet(mixed $offset, mixed $value)

Set the value at the given offset.

void
offsetUnset(mixed $offset)

Unset the value at the given offset.

Details

__construct($class, $database, $table, $policy, $attributes, $relations, $events, $observers, $collection, $builder, $resource)

No description

Parameters

$class
$database
$table
$policy
$attributes
$relations
$events
$observers
$collection
$builder
$resource

toArray()

Convert the model info to an array.

bool offsetExists(mixed $offset)

Determine if the given offset exists.

Parameters

mixed $offset

Return Value

bool

mixed offsetGet(mixed $offset)

Get the value for a given offset.

Parameters

mixed $offset

Return Value

mixed

Exceptions

InvalidArgumentException

void offsetSet(mixed $offset, mixed $value)

Set the value at the given offset.

Parameters

mixed $offset
mixed $value

Return Value

void

Exceptions

LogicException

void offsetUnset(mixed $offset)

Unset the value at the given offset.

Parameters

mixed $offset

Return Value

void

Exceptions

LogicException