Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • DataTypeLexer
  • Monad
  • Overview
  • Namespace
  • Class
  • Tree

Class Monad

Allow method chaining and simulated object immutablity by performing every method call on a clone of the object you started with.

Direct known subclasses

Alchemy\orm\SessionSelect
Namespace: Alchemy\util
Located at alchemy/util/Monad.php
Methods summary
public
# __construct( Object $value )

Object constructor.

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

Alchemy\util\Monad
public
# __clone( )

Force PHP to deep clone

Force PHP to deep clone

public mixed
# unwrap( )

Unwrap the value

Unwrap the value

Returns

mixed
Properties summary
protected mixed $value
#
API documentation generated by ApiGen 2.8.0