Fluent
class Fluent implements ArrayAccess, Arrayable, Jsonable, JsonSerializable
Properties
protected array | $attributes | All of the attributes set on the container. |
Methods
Create a new fluent container instance.
Get an attribute from the container.
Get the attributes from the container.
Convert the Fluent instance to an array.
Convert the object into something JSON serializable.
Convert the Fluent instance to JSON.
Determine if the given offset exists.
Get the value for a given offset.
Set the value at the given offset.
Unset the value at the given offset.
Handle dynamic calls to the container to set attributes.
Dynamically retrieve the value of an attribute.
Dynamically set the value of an attribute.
Dynamically check if an attribute is set.
Dynamically unset an attribute.
Details
at line 25
void
__construct(array|object $attributes = [])
Create a new fluent container instance.
at line 39
mixed
get(string $key, mixed $default = null)
Get an attribute from the container.
at line 53
array
getAttributes()
Get the attributes from the container.
at line 63
array
toArray()
Convert the Fluent instance to an array.
at line 73
array
jsonSerialize()
Convert the object into something JSON serializable.
at line 84
string
toJson(int $options = 0)
Convert the Fluent instance to JSON.
at line 95
bool
offsetExists(string $offset)
Determine if the given offset exists.
at line 106
mixed
offsetGet(string $offset)
Get the value for a given offset.
at line 118
void
offsetSet(string $offset, mixed $value)
Set the value at the given offset.
at line 129
void
offsetUnset(string $offset)
Unset the value at the given offset.
at line 141
$this
__call(string $method, array $parameters)
Handle dynamic calls to the container to set attributes.
at line 154
mixed
__get(string $key)
Dynamically retrieve the value of an attribute.
at line 166
void
__set(string $key, mixed $value)
Dynamically set the value of an attribute.
at line 177
bool
__isset(string $key)
Dynamically check if an attribute is set.
at line 188
void
__unset(string $key)
Dynamically unset an attribute.