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.
Completed
Push — master ( c7f4e3...a41792 )
by Mario
18:09
created

Content::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.7333
c 0
b 0
f 0
cc 1
nc 1
nop 6
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Netgen\InformationCollection\API\Value;
6
7
use eZ\Publish\API\Repository\Values\ContentType\ContentType;
8
use eZ\Publish\API\Repository\Values\Content\Content as APIContent;
9
10
final class Content extends ValueObject
11
{
12
    /**
13
     * @var bool
14
     */
15
    protected $hasLocation;
16
17
    /**
18
     * @var APIContent
19
     */
20
    protected $content;
21
22
    /**
23
     * @var ContentType
24
     */
25
    protected $contentType;
26
27
    /**
28
     * @var Collection
29
     */
30
    protected $firstCollection;
31
32
    /**
33
     * @var Collection
34
     */
35
    protected $lastCollection;
36
37
    /**
38
     * @var int
39
     */
40
    protected $childCount;
41
42
    public function __construct(
43
        APIContent $content,
44
        ContentType $contentType,
45
        Collection $firstCollection,
46
        Collection $lastCollection,
47
        int $childCount,
48
        bool $hasLocation
49
    )
50
    {
51
        $this->hasLocation = $hasLocation;
52
        $this->content = $content;
53
        $this->contentType = $contentType;
54
        $this->firstCollection = $firstCollection;
55
        $this->lastCollection = $lastCollection;
56
        $this->childCount = $childCount;
57
    }
58
59
    /**
60
     * @return APIContent
61
     */
62
    public function getContent(): APIContent
63
    {
64
        return $this->content;
65
    }
66
67
    /**
68
     * @return ContentType
69
     */
70
    public function getContentType(): ContentType
71
    {
72
        return $this->contentType;
73
    }
74
75
    /**
76
     * @return Collection
77
     */
78
    public function getFirstCollection(): Collection
79
    {
80
        return $this->firstCollection;
81
    }
82
83
    /**
84
     * @return Collection
85
     */
86
    public function getLastCollection(): Collection
87
    {
88
        return $this->lastCollection;
89
    }
90
91
    /**
92
     * @return int
93
     */
94
    public function getCount(): int
95
    {
96
        return $this->childCount;
97
    }
98
99
    /**
100
     * @return bool
101
     */
102
    public function hasLocation(): bool
103
    {
104
        return $this->hasLocation;
105
    }
106
}
107