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.

TemplateContent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getEvent() 0 4 1
A getContent() 0 4 1
A getTemplateWrapper() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Netgen\InformationCollection\API\Value\DataTransfer;
6
7
use eZ\Publish\API\Repository\Values\Content\Content;
8
use Netgen\InformationCollection\API\Value\Event\InformationCollected;
9
use Netgen\InformationCollection\API\Value\ValueObject;
10
use Twig\TemplateWrapper;
11
12
class TemplateContent extends ValueObject
13
{
14
    /**
15
     * @var \Netgen\InformationCollection\API\Value\Event\InformationCollected
16
     */
17
    protected $event;
18
19
    /**
20
     * @var \Twig\TemplateWrapper
21
     */
22
    protected $templateWrapper;
23
24
    /**
25
     * TemplateData constructor.
26
     *
27
     * @param \Netgen\InformationCollection\API\Value\Event\InformationCollected $event
28
     * @param \Twig\TemplateWrapper $templateWrapper
29
     */
30
    public function __construct(InformationCollected $event, TemplateWrapper $templateWrapper)
31
    {
32
        $this->event = $event;
33
        $this->templateWrapper = $templateWrapper;
34
    }
35
36
    /**
37
     * @return \Netgen\InformationCollection\API\Value\Event\InformationCollected
38
     */
39
    public function getEvent(): InformationCollected
40
    {
41
        return $this->event;
42
    }
43
44
    /**
45
     * @return \eZ\Publish\API\Repository\Values\Content\Content
46
     */
47
    public function getContent(): Content
48
    {
49
        return $this->event->getContent();
50
    }
51
52
    /**
53
     * @return \Twig\TemplateWrapper
54
     */
55
    public function getTemplateWrapper(): TemplateWrapper
56
    {
57
        return $this->templateWrapper;
58
    }
59
}
60