Methods summary
public
|
#
__construct( array $attributes = array() )
Create a new fluent container instance.
Create a new fluent container instance.
Create a new fluent container with attributes
$fluent = new Fluent(array('name' => 'Taylor'));
Parameters
- $attributes
array $attributes
|
public
mixed
|
#
get( string $attribute, mixed $default = null )
Get an attribute from the fluent container.
Get an attribute from the fluent container.
Parameters
- $attribute
string $attribute
- $default
mixed $default
Returns
mixed
|
public
|
#
__call( mixed $method, mixed $parameters )
Handle dynamic calls to the container to set attributes.
Handle dynamic calls to the container to set attributes.
$fluent->name('Taylor')->age(25);
$fluent->nullable()->name('Taylor');
|
public
|
#
__get( mixed $key )
Dynamically retrieve the value of an attribute.
Dynamically retrieve the value of an attribute.
|
public
|
#
__set( mixed $key, mixed $value )
Dynamically set the value of an attribute.
Dynamically set the value of an attribute.
|
public
|
#
__isset( mixed $key )
Dynamically check if an attribute is set.
Dynamically check if an attribute is set.
|
public
|
#
__unset( mixed $key )
Dynamically unset an attribute.
Dynamically unset an attribute.
|