Pinq\Expressions\ClosureUsedVariableExpression::update PHP Method

update() public method

public update ( string $name, boolean $isReference ) : ClosureUsedVariableExpression
$name string
$isReference boolean
return ClosureUsedVariableExpression
    public function update($name, $isReference)
    {
        if ($this->name === $name && $this->isReference === $isReference) {
            return $this;
        }
        return new self($name, $isReference);
    }