Pinq\Queries\Segments\Operation::update PHP Method

update() public method

public update ( integer $operationType, Pinq\Queries\Common\ISource $source ) : Operation
$operationType integer
$source Pinq\Queries\Common\ISource
return Operation
    public function update($operationType, Common\ISource $source)
    {
        if ($this->operationType === $operationType && $this->source === $source) {
            return $this;
        }
        return new self($operationType, $source);
    }