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

getOperationType() public method

public getOperationType ( ) : integer
return integer
    public function getOperationType()
    {
        return $this->operationType;
    }

Usage Example

Example #1
0
 public function visitOperation(Segments\Operation $query)
 {
     $textMap = [Segments\Operation::APPEND => 'Append with: ', Segments\Operation::DIFFERENCE => 'The difference from: ', Segments\Operation::EXCEPT => 'Where not contained in: ', Segments\Operation::INTERSECT => 'The intersection with: ', Segments\Operation::UNION => 'The union with: ', Segments\Operation::WHERE_IN => 'Where contained in: '];
     $this->compilation->append($textMap[$query->getOperationType()]);
     $this->compilation->appendSource($query->getSource(), true);
     $this->compilation->appendLine();
 }
All Usage Examples Of Pinq\Queries\Segments\Operation::getOperationType