Completed
Push — master ( f4ef0a...d00cab )
by Marco
16s
created

GroupByClause   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A dispatch() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ORM\Query\AST;
6
7
use Doctrine\ORM\Query\Expr\GroupBy;
8
9
class GroupByClause extends Node
10
{
11
    /**
12
     * @var GroupBy[]
13
     */
14
    public $groupByItems = [];
15
16
    /**
17
     * @param GroupBy[] $groupByItems
18
     */
19 32
    public function __construct(array $groupByItems)
20
    {
21 32
        $this->groupByItems = $groupByItems;
22 32
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function dispatch($sqlWalker)
28
    {
29
        return $sqlWalker->walkGroupByClause($this);
30
    }
31
}
32