Pinq\Expressions\Expression::variable PHP Method

variable() final public static method

final public static variable ( Expression $name ) : VariableExpression
$name Expression
return VariableExpression
    public static final function variable(Expression $name)
    {
        return new VariableExpression($name);
    }

Usage Example

コード例 #1
0
ファイル: AnalysisContext.php プロジェクト: timetoogo/pinq
 public function __construct(ITypeSystem $typeSystem, O\IEvaluationContext $evaluationContext)
 {
     parent::__construct($typeSystem);
     $this->evaluationContext = $evaluationContext;
     foreach ($evaluationContext->getVariableTable() as $variable => $value) {
         $this->setExpressionType(O\Expression::variable(O\Expression::value($variable)), $typeSystem->getTypeFromValue($value));
     }
 }
All Usage Examples Of Pinq\Expressions\Expression::variable