Documentation

Fluent
in package
implements ArrayAccess, Arrayable, Jsonable, JsonSerializable

Interfaces, Classes and Traits

ArrayAccess
Arrayable
Jsonable
JsonSerializable

Table of Contents

$attributes  : array<string|int, mixed>
All of the attributes set on the container.
__call()  : $this
Handle dynamic calls to the container to set attributes.
__construct()  : void
Create a new fluent container instance.
__get()  : mixed
Dynamically retrieve the value of an attribute.
__isset()  : bool
Dynamically check if an attribute is set.
__set()  : void
Dynamically set the value of an attribute.
__unset()  : void
Dynamically unset an attribute.
get()  : mixed
Get an attribute from the container.
getAttributes()  : array<string|int, mixed>
Get the attributes from the container.
jsonSerialize()  : array<string|int, mixed>
Convert the object into something JSON serializable.
offsetExists()  : bool
Determine if the given offset exists.
offsetGet()  : mixed
Get the value for a given offset.
offsetSet()  : void
Set the value at the given offset.
offsetUnset()  : void
Unset the value at the given offset.
toArray()  : array<string|int, mixed>
Convert the Fluent instance to an array.
toJson()  : string
Convert the Fluent instance to JSON.

Properties

$attributes

All of the attributes set on the container.

protected array<string|int, mixed> $attributes = []

Methods

__call()

Handle dynamic calls to the container to set attributes.

public __call(string $method, array<string|int, mixed> $parameters) : $this
Parameters
$method : string
$parameters : array<string|int, mixed>
Return values
$this

__construct()

Create a new fluent container instance.

public __construct([array<string|int, mixed>|object $attributes = [] ]) : void
Parameters
$attributes : array<string|int, mixed>|object = []
Return values
void

__get()

Dynamically retrieve the value of an attribute.

public __get(string $key) : mixed
Parameters
$key : string
Return values
mixed

__isset()

Dynamically check if an attribute is set.

public __isset(string $key) : bool
Parameters
$key : string
Return values
bool

__set()

Dynamically set the value of an attribute.

public __set(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed
Return values
void

__unset()

Dynamically unset an attribute.

public __unset(string $key) : void
Parameters
$key : string
Return values
void

get()

Get an attribute from the container.

public get(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null
Return values
mixed

getAttributes()

Get the attributes from the container.

public getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>

jsonSerialize()

Convert the object into something JSON serializable.

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

offsetExists()

Determine if the given offset exists.

public offsetExists(string $offset) : bool
Parameters
$offset : string
Return values
bool

offsetGet()

Get the value for a given offset.

public offsetGet(string $offset) : mixed
Parameters
$offset : string
Return values
mixed

offsetSet()

Set the value at the given offset.

public offsetSet(string $offset, mixed $value) : void
Parameters
$offset : string
$value : mixed
Return values
void

offsetUnset()

Unset the value at the given offset.

public offsetUnset(string $offset) : void
Parameters
$offset : string
Return values
void

toArray()

Convert the Fluent instance to an array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

toJson()

Convert the Fluent instance to JSON.

public toJson(int $options) : string
Parameters
$options : int
Return values
string

Search results