blob: 468c65c2a70131c0378e0bd7e4de57108d5edbd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Query\AST;
use Doctrine\ORM\Query\SqlWalker;
class AggregateExpression extends Node
{
/** @param bool $isDistinct Some aggregate expressions support distinct, eg COUNT. */
public function __construct(
public string $functionName,
public Node|string $pathExpression,
public bool $isDistinct,
) {
}
public function dispatch(SqlWalker $walker): string
{
return $walker->walkAggregateExpression($this);
}
}
|