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

getSource() public method

public getSource ( ) : Pinq\Queries\Common\ISource
return Pinq\Queries\Common\ISource
    public function getSource()
    {
        return $this->source;
    }

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::getSource