Completed
Push — aggregate_criterion ( ce4638...f5b574 )
by
unknown
17:48
created

CompositeCriterion::getSpecifications()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\API\Repository\Values\Content\Query\Criterion;
10
11
use eZ\Publish\API\Repository\Exceptions\NotImplementedException;
12
use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
13
14
abstract class CompositeCriterion extends Criterion
15
{
16
    /** @var \eZ\Publish\API\Repository\Values\Content\Query\Criterion */
17
    public $criteria;
18
19
    public function __construct(Criterion $criteria)
20
    {
21
        $this->criteria = $criteria;
22
    }
23
24
    public function getSpecifications(): array
25
    {
26
        throw new NotImplementedException('getSpecifications() not implemented for AggregateCriterion');
27
    }
28
}
29