PHP Class Pinq\Expressions\CompiledEvaluator

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

Protected Properties

Property Type Description
$boundCompiledEvaluator Closure
$code string
$extraVariables mixed[]
$originalCompiledEvaluator Closure

Public Methods

Method Description
fromExpressions ( array $expressions, Pinq\Expressions\IEvaluationContext $context = null ) : CompiledEvaluator Creates a new compiled evaluator from the supplied expressions.
getCode ( ) : string
serialize ( )
unserialize ( $serialized )

Protected Methods

Method Description
doEvaluation ( array $variableTable )
doEvaluationWithNewThis ( array $variableTable, $newThis )

Private Methods

Method Description
initializeEvaluator ( )

Method Details

doEvaluation() protected method

protected doEvaluation ( array $variableTable )
$variableTable array

doEvaluationWithNewThis() protected method

protected doEvaluationWithNewThis ( array $variableTable, $newThis )
$variableTable array

fromExpressions() public static method

Creates a new compiled evaluator from the supplied expressions.
public static fromExpressions ( array $expressions, Pinq\Expressions\IEvaluationContext $context = null ) : CompiledEvaluator
$expressions array
$context Pinq\Expressions\IEvaluationContext
return CompiledEvaluator

getCode() public method

public getCode ( ) : string
return string

serialize() public method

public serialize ( )

unserialize() public method

public unserialize ( $serialized )

Property Details

$boundCompiledEvaluator protected property

protected Closure $boundCompiledEvaluator
return Closure

$code protected property

protected string $code
return string

$extraVariables protected property

protected mixed[] $extraVariables
return mixed[]

$originalCompiledEvaluator protected property

protected Closure $originalCompiledEvaluator
return Closure