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

Properties

protected TValue> $attributes

All of the attributes set on the fluent instance.

Methods

void
__construct(TValue> $attributes = [])

Create a new fluent instance.

TValue|TGetDefault
get(TKey $key, TGetDefault|TGetDefault $default = null)

Get an attribute from the fluent instance.

TValue>
getAttributes()

Get the attributes from the fluent instance.

TValue>
toArray()

Convert the fluent instance to an array.

array
jsonSerialize()

Convert the object into something JSON serializable.

string
toJson(int $options = 0)

Convert the fluent instance to JSON.

bool
offsetExists(TKey $offset)

Determine if the given offset exists.

mixed
offsetGet(TKey $offset)

Get the value for a given offset.

void
offsetSet(TKey $offset, TValue $value)

Set the value at the given offset.

void
offsetUnset(TKey $offset)

Unset the value at the given offset.

$this
__call(TKey $method, TValue} $parameters)

Handle dynamic calls to the fluent instance to set attributes.

TValue|null
__get(TKey $key)

Dynamically retrieve the value of an attribute.

void
__set(TKey $key, TValue $value)

Dynamically set the value of an attribute.

bool
__isset(TKey $key)

Dynamically check if an attribute is set.

void
__unset(TKey $key)

Dynamically unset an attribute.

Details

void __construct(TValue> $attributes = [])

Create a new fluent instance.

Parameters

TValue> $attributes

Return Value

void

TValue|TGetDefault get(TKey $key, TGetDefault|TGetDefault $default = null)

Get an attribute from the fluent instance.

Parameters

TKey $key
TGetDefault|TGetDefault $default

Return Value

TValue|TGetDefault

TValue> getAttributes()

Get the attributes from the fluent instance.

Return Value

TValue>

TValue> toArray()

Convert the fluent instance to an array.

Return Value

TValue>

array jsonSerialize()

Convert the object into something JSON serializable.

Return Value

array

string toJson(int $options = 0)

Convert the fluent instance to JSON.

Parameters

int $options

Return Value

string

bool offsetExists(TKey $offset)

Determine if the given offset exists.

Parameters

TKey $offset

Return Value

bool

mixed offsetGet(TKey $offset)

Get the value for a given offset.

Parameters

TKey $offset

Return Value

mixed

void offsetSet(TKey $offset, TValue $value)

Set the value at the given offset.

Parameters

TKey $offset
TValue $value

Return Value

void

void offsetUnset(TKey $offset)

Unset the value at the given offset.

Parameters

TKey $offset

Return Value

void

$this __call(TKey $method, TValue} $parameters)

Handle dynamic calls to the fluent instance to set attributes.

Parameters

TKey $method
TValue} $parameters

Return Value

$this

TValue|null __get(TKey $key)

Dynamically retrieve the value of an attribute.

Parameters

TKey $key

Return Value

TValue|null

void __set(TKey $key, TValue $value)

Dynamically set the value of an attribute.

Parameters

TKey $key
TValue $value

Return Value

void

bool __isset(TKey $key)

Dynamically check if an attribute is set.

Parameters

TKey $key

Return Value

bool

void __unset(TKey $key)

Dynamically unset an attribute.

Parameters

TKey $key

Return Value

void

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.