Pinq\Expressions\CastExpression::update PHP Method

update() public method

public update ( string $castType, Expression $castValue ) : self
$castType string
$castValue Expression
return self
    public function update($castType, Expression $castValue)
    {
        if ($this->castType === $castType && $this->castValue === $castValue) {
            return $this;
        }
        return new self($castType, $castValue);
    }