Completed
Push — EZP-30969-fetch-reverse-relati... ( d71d24 )
by
unknown
121:16 queued 99:27
created

UnauthorizedRelationListItem   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 18
c 0
b 0
f 0
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRelation() 0 4 1
A hasRelation() 0 4 1
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\RelationList\Item;
10
11
use eZ\Publish\API\Repository\Lists\UnauthorizedListItem;
12
use eZ\Publish\API\Repository\Values\Content\RelationList\RelationListItemInterface;
13
use eZ\Publish\API\Repository\Values\Content\Relation;
14
15
/**
16
 * Item of relation list.
17
 */
18
final class UnauthorizedRelationListItem extends UnauthorizedListItem implements RelationListItemInterface
19
{
20
    /**
21
     * @return \eZ\Publish\API\Repository\Values\Content\Relation|null
22
     */
23
    public function getRelation(): ?Relation
24
    {
25
        return null;
26
    }
27
28
    /**
29
     * @return bool
30
     */
31
    public function hasRelation(): bool
32
    {
33
        return false;
34
    }
35
}
36