You are here

public function Criteria::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php \Doctrine\Common\Collections\Criteria::__construct()

Construct a new Criteria.

Parameters

Expression $expression:

string[]|null $orderings:

int|null $firstResult:

int|null $maxResults:

File

vendor/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);
  }
}