class
Illuminate
/
Support
/
Fluent
You are viewing an older version of the documentation. For the latest, please visit master documentation.
Fluent
Implements
Properties
protected
$attributes array
All of the attributes set on the fluent instance.
Default: []
Methods
public
__construct ( $attributes ) : void
Create a new fluent instance.
Parameters
- $attributes array|object
public
get ( $key , $default ) : mixed
Get an attribute from the fluent instance.
Parameters
- $key string
- $default mixed
public
getAttributes ( ) : array
Get the attributes from the fluent instance.
public
toArray ( ) : array
Convert the fluent instance to an array.
public
jsonSerialize ( ) : array
Convert the object into something JSON serializable.
public
toJson ( $options ) : string
Convert the fluent instance to JSON.
Parameters
- $options int
public
offsetExists ( $offset ) : bool
Determine if the given offset exists.
Parameters
- $offset string
public
offsetGet ( $offset ) : mixed
Get the value for a given offset.
Parameters
- $offset string
public
offsetSet ( $offset , $value ) : void
Set the value at the given offset.
Parameters
- $offset string
- $value mixed
public
offsetUnset ( $offset ) : void
Unset the value at the given offset.
Parameters
- $offset string
public
__call ( $method , $parameters ) : $this
Handle dynamic calls to the fluent instance to set attributes.
Parameters
- $method string
- $parameters array
public
__get ( $key ) : mixed
Dynamically retrieve the value of an attribute.
Parameters
- $key string
public
__set ( $key , $value ) : void
Dynamically set the value of an attribute.
Parameters
- $key string
- $value mixed
public
__isset ( $key ) : bool
Dynamically check if an attribute is set.
Parameters
- $key string
public
__unset ( $key ) : void
Dynamically unset an attribute.
Parameters
- $key string