You are here

public function Criteria::__construct in Plug 7

Construct a new Criteria.

Parameters

Expression $expression:

string[]|null $orderings:

int|null $firstResult:

int|null $maxResults:

File

lib/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php, line 100

Class

Criteria
Criteria for filtering Selectable collections.

Namespace

Doctrine\Common\Collections

Code

public function __construct(Expression $expression = null, array $orderings = null, $firstResult = null, $maxResults = null) {
  $this->expression = $expression;
  $this
    ->setFirstResult($firstResult);
  $this
    ->setMaxResults($maxResults);
  if (null !== $orderings) {
    $this
      ->orderBy($orderings);
  }
}