LaravelFluent

Summary

No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
File
fluent.php
Package
Default
Class hierarchy
LaravelFluent

Tags

None found

Properties

$attributes

$attributes : array

All of the attributes set on the fluent container.

Type

array

Tags

None found

Methods

__construct()

__construct(array  $attributes = array()) : void

Create a new fluent container instance.

Create a new fluent container with attributes $fluent = new Fluent(array('name' => 'Taylor'));

Parameters

array $attributes

Tags

None found

get()

get(string  $attribute, mixed  $default = null) : mixed

Get an attribute from the fluent container.

Parameters

string $attribute
mixed $default

Returns

mixed

Tags

None found

__call()

__call(  $method,   $parameters) 

Handle dynamic calls to the container to set attributes.

// Fluently set the value of a few attributes $fluent->name('Taylor')->age(25);

// Set the value of an attribute to true (boolean)
$fluent->nullable()->name('Taylor');

Parameters

$method
$parameters

Tags

None found

__get()

__get(  $key) 

Dynamically retrieve the value of an attribute.

Parameters

$key

Tags

None found

__set()

__set(  $key,   $value) 

Dynamically set the value of an attribute.

Parameters

$key
$value

Tags

None found

__isset()

__isset(  $key) 

Dynamically check if an attribute is set.

Parameters

$key

Tags

None found

__unset()

__unset(  $key) 

Dynamically unset an attribute.

Parameters

$key

Tags

None found