Neos\Flow\Persistence\Generic\QueryResult::getQuery PHP Method

getQuery() public method

Returns a clone of the query object
public getQuery ( ) : Neos\Flow\Persistence\QueryInterface
return Neos\Flow\Persistence\QueryInterface
    public function getQuery()
    {
        return clone $this->query;
    }

Usage Example

 /**
  * @test
  */
 public function getQueryReturnsAClone()
 {
     $this->assertNotSame($this->query, $this->queryResult->getQuery());
 }