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 ( b5dfb6...a568a9 )
by Mario
40:05
created

InformationCollected::getLocation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Netgen\InformationCollection\API\Value\Event;
6
7
use eZ\Publish\API\Repository\Values\Content\Content;
8
use eZ\Publish\API\Repository\Values\Content\Location;
9
use eZ\Publish\API\Repository\Values\ContentType\ContentType;
10
use Netgen\Bundle\EzFormsBundle\Form\DataWrapper;
11
use Netgen\Bundle\EzFormsBundle\Form\Payload\InformationCollectionStruct;
12
use Symfony\Component\EventDispatcher\Event;
13
14
class InformationCollected extends Event
15
{
16
    /**
17
     * @var DataWrapper
18
     */
19
    protected $data;
20
21
    /**
22
     * @var Content|null
23
     */
24
    protected $additionalContent;
25
26
    /**
27
     * InformationCollected constructor.
28
     *
29
     * @param DataWrapper $data
30
     * @param Content $additionalContent
31
     */
32
    public function __construct(DataWrapper $data, $additionalContent = null)
33
    {
34
        $this->data = $data;
35
        $this->additionalContent = $additionalContent;
36
    }
37
38
    /**
39
     * Return collected data.
40
     *
41
     * @return InformationCollectionStruct
42
     */
43
    public function getInformationCollectionStruct()
44
    {
45
        return $this->data->payload;
46
    }
47
48
    /**
49
     * Return ContentType.
50
     *
51
     * @return ContentType
52
     */
53
    public function getContentType()
54
    {
55
        return $this->data->definition;
56
    }
57
58
    /**
59
     * Return Location.
60
     *
61
     * @return Location|null
62
     */
63
    public function getLocation()
64
    {
65
        return $this->data->target;
66
    }
67
68
    /**
69
     * Returns additional content
70
     * This can be ez content or site api content.
71
     *
72
     * @return Content
73
     */
74
    public function getAdditionalContent()
75
    {
76
        return $this->additionalContent;
77
    }
78
}
79