Pinq\IQueryable::take PHP Method

take() public method

{@inheritDoc}
public take ( $amount ) : pinq\IQueryable
return pinq\IQueryable
    public function take($amount);

Usage Example

 public function testOptimizeQueryReturnsExpression()
 {
     $this->assertInstanceOf(O\Expression::getType(), $this->queryResultsCollection->optimizeQuery($this->queryable->getExpression()));
     $this->assertInstanceOf(O\Expression::getType(), $this->queryResultsCollection->optimizeQuery($this->queryable->take(1)->select('strlen')->getExpression()));
 }