Completed
Push — create_from_qb ( 323041 )
by
unknown
12:48
created

MatchNone::createFromQueryBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the eZ Publish package.
5
 *
6
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
7
 * @license For full copyright and license information view LICENSE file distributed with this source code.
8
 */
9
namespace eZ\Publish\API\Repository\Values\Content\Query\Criterion;
10
11
use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
12
13
/**
14
 * A criterion that just matches nothing.
15
 *
16
 * Useful for BlockingLimitation type, where a limitation is typically missing and needs to
17
 * tell the system should block everything within the OR conditions it might be part of.
18
 */
19
class MatchNone extends Criterion
20
{
21
    public function __construct()
22
    {
23
        // Do NOT call parent constructor. It tries to be too smart.
24
    }
25
26
    public function getSpecifications()
27
    {
28
        return [];
29
    }
30
}
31