Class Monad
Allow method chaining and simulated object immutablity by performing every
method call on a clone of the object you started with.
Methods summary
public
|
#
__construct( Object $value )
Object constructor.
Parameters
- $value
Object $value Object to wrap
|
public
Alchemy\util\Monad
|
#
__call( string $fn, array $args )
Clone the inner object, call a method on it, and return it
Clone the inner object, call a method on it, and return it
Parameters
- $fn
string $fn Method Name
- $args
array $args
Returns
|
public
|
|
public
mixed
|
#
unwrap( )
Unwrap the value
Returns
mixed
|
Properties summary
protected
mixed
|
$value
|
|
|