GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

TypeDefinitionContainer::getTypeDefinition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
namespace Dkd\PhpCmis\DataObjects;
3
4
/*
5
 * This file is part of php-cmis-client.
6
 *
7
 * (c) Sascha Egerer <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
use Dkd\PhpCmis\Definitions\TypeDefinitionContainerInterface;
14
use Dkd\PhpCmis\Definitions\TypeDefinitionInterface;
15
16
/**
17
 * Type Definition Container. This class is used to build a tree of type
18
 * definitions.
19
 */
20
class TypeDefinitionContainer extends AbstractExtensionData implements TypeDefinitionContainerInterface
21
{
22
    /**
23
     * @var TypeDefinitionContainerInterface[]
24
     */
25
    protected $children = [];
26
27
    /**
28
     * @var TypeDefinitionInterface
29
     */
30
    protected $typeDefinition;
31
32
    /**
33
     * Returns direct children of the type definition at this level.
34
     *
35
     * @return TypeDefinitionContainerInterface[]
36
     */
37
    public function getChildren()
38
    {
39
        return $this->children;
40
    }
41
42
    /**
43
     * @param TypeDefinitionContainerInterface[] $children
44
     */
45
    public function setChildren(array $children)
46
    {
47
        $this->children = $children;
48
    }
49
50
    /**
51
     * Returns the type definition at this level.
52
     *
53
     * @return TypeDefinitionInterface
54
     */
55
    public function getTypeDefinition()
56
    {
57
        return $this->typeDefinition;
58
    }
59
60
    public function setTypeDefinition(TypeDefinitionInterface $typeDefinition)
61
    {
62
        $this->typeDefinition = $typeDefinition;
63
    }
64
}
65