vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/Functions/MinFunction.php line 24

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\ORM\Query\AST\Functions;
  4. use Doctrine\ORM\Query\AST\AggregateExpression;
  5. use Doctrine\ORM\Query\Parser;
  6. use Doctrine\ORM\Query\SqlWalker;
  7. /**
  8.  * "MIN" "(" ["DISTINCT"] StringPrimary ")"
  9.  */
  10. final class MinFunction extends FunctionNode
  11. {
  12.     /** @var AggregateExpression */
  13.     private $aggregateExpression;
  14.     public function getSql(SqlWalker $sqlWalker): string
  15.     {
  16.         return $this->aggregateExpression->dispatch($sqlWalker);
  17.     }
  18.     public function parse(Parser $parser): void
  19.     {
  20.         $this->aggregateExpression $parser->AggregateExpression();
  21.     }
  22. }