class Fluent implements ArrayAccess, Arrayable, Jsonable, JsonSerializable (View source)

Methods

void
__construct( array|object $attributes = array())

Create a new fluent container instance.

mixed
get( string $key, mixed $default = null)

Get an attribute from the container.

array
getAttributes()

Get the attributes from the container.

array
toArray()

Convert the Fluent instance to an array.

array
jsonSerialize()

Convert the object into something JSON serializable.

string
toJson( int $options)

Convert the Fluent instance to JSON.

bool
offsetExists( string $offset)

Determine if the given offset exists.

mixed
offsetGet( string $offset)

Get the value for a given offset.

void
offsetSet( string $offset, mixed $value)

Set the value at the given offset.

void
offsetUnset( string $offset)

Unset the value at the given offset.

$this
__call( string $method, array $parameters)

Handle dynamic calls to the container to set attributes.

mixed
__get( string $key)

Dynamically retrieve the value of an attribute.

void
__set( string $key, mixed $value)

Dynamically set the value of an attribute.

bool
__isset( string $key)

Dynamically check if an attribute is set.

void
__unset( string $key)

Dynamically unset an attribute.

Details

at line line 25
void __construct( array|object $attributes = array())

Create a new fluent container instance.

Parameters

array|object $attributes

Return Value

void

at line line 39
mixed get( string $key, mixed $default = null)

Get an attribute from the container.

Parameters

string $key
mixed $default

Return Value

mixed

at line line 53
array getAttributes()

Get the attributes from the container.

Return Value

array

at line line 63
array toArray()

Convert the Fluent instance to an array.

Return Value

array

at line line 73
array jsonSerialize()

Convert the object into something JSON serializable.

Return Value

array

at line line 84
string toJson( int $options)

Convert the Fluent instance to JSON.

Parameters

int $options

Return Value

string

at line line 95
bool offsetExists( string $offset)

Determine if the given offset exists.

Parameters

string $offset

Return Value

bool

at line line 106
mixed offsetGet( string $offset)

Get the value for a given offset.

Parameters

string $offset

Return Value

mixed

at line line 118
void offsetSet( string $offset, mixed $value)

Set the value at the given offset.

Parameters

string $offset
mixed $value

Return Value

void

at line line 129
void offsetUnset( string $offset)

Unset the value at the given offset.

Parameters

string $offset

Return Value

void

at line line 141
$this __call( string $method, array $parameters)

Handle dynamic calls to the container to set attributes.

Parameters

string $method
array $parameters

Return Value

$this

at line line 154
mixed __get( string $key)

Dynamically retrieve the value of an attribute.

Parameters

string $key

Return Value

mixed

at line line 166
void __set( string $key, mixed $value)

Dynamically set the value of an attribute.

Parameters

string $key
mixed $value

Return Value

void

at line line 177
bool __isset( string $key)

Dynamically check if an attribute is set.

Parameters

string $key

Return Value

bool

at line line 188
void __unset( string $key)

Dynamically unset an attribute.

Parameters

string $key

Return Value

void