Completed
Push — master ( 702e62...20fc8a )
by André
124:57 queued 101:37
created

PermissionSubtree::getSpecifications()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 15
Ratio 100 %
Metric Value
dl 15
loc 15
rs 9.4285
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
3
/**
4
 * File containing the eZ\Publish\API\Repository\Values\Content\Query\Criterion\PermissionSubtree class.
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
 * @version //autogentag//
10
 */
11
namespace eZ\Publish\Core\Repository\Values\Content\Query\Criterion;
12
13
use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Subtree as APISubtreeCriterion;
14
15
/**
16
 * Criterion that matches content that belongs to a given (list of) Subtree(s).
17
 *
18
 * Content will be matched if it is part of at least one of the given subtree path strings
19
 *
20
 * This is a internal subtree criterion intended for use by permission system (SubtreeLimitationType) only!
21
 * And will be applied by SQL based search engines on Content Search to avoid performance problems.
22
 * @see https://jira.ez.no/browse/EZP-23037
23
 */
24
class PermissionSubtree extends APISubtreeCriterion
25
{
26
    public static function createFromQueryBuilder($target, $operator, $value)
27
    {
28
        return new self($value);
29
    }
30
}
31