for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Query\AST\Functions;
use Doctrine\ORM\Query\AST\AggregateExpression;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
/**
* "AVG" "(" ["DISTINCT"] StringPrimary ")"
*/
final class AvgFunction extends FunctionNode
{
/** @var AggregateExpression */
private $aggregateExpression;
* @inheritDoc
public function getSql(SqlWalker $sqlWalker) : string
return $this->aggregateExpression->dispatch($sqlWalker);
}
public function parse(Parser $parser) : void
$this->aggregateExpression = $parser->AggregateExpression();