PHP Class Pinq\Expressions\TernaryExpression

Author: Elliot Levin ([email protected])
Inheritance: extends Expression
Show file Open project: timetoogo/pinq Class Usage Examples

Public Methods

Method Description
__clone ( )
__construct ( Expression $condition, Expression $ifTrue = null, Expression $ifFalse )
getCondition ( ) : Expression
getIfFalse ( ) : Expression
getIfTrue ( ) : Expression
hasIfTrue ( ) : boolean
serialize ( )
traverse ( ExpressionWalker $walker )
unserialize ( $serialized )
update ( Expression $condition, Expression $ifTrue = null, Expression $ifFalse ) : self

Protected Methods

Method Description
compileCode ( &$code )

Method Details

__clone() public method

public __clone ( )

__construct() public method

public __construct ( Expression $condition, Expression $ifTrue = null, Expression $ifFalse )
$condition Expression
$ifTrue Expression
$ifFalse Expression

compileCode() protected method

protected compileCode ( &$code )

getCondition() public method

public getCondition ( ) : Expression
return Expression

getIfFalse() public method

public getIfFalse ( ) : Expression
return Expression

getIfTrue() public method

public getIfTrue ( ) : Expression
return Expression

hasIfTrue() public method

public hasIfTrue ( ) : boolean
return boolean

serialize() public method

public serialize ( )

traverse() public method

public traverse ( ExpressionWalker $walker )
$walker ExpressionWalker

unserialize() public method

public unserialize ( $serialized )

update() public method

public update ( Expression $condition, Expression $ifTrue = null, Expression $ifFalse ) : self
$condition Expression
$ifTrue Expression
$ifFalse Expression
return self