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 ( 28b23d...97cb80 )
by Stan
03:33
created

ChainItem   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 34
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getEntity() 0 4 1
A getParent() 0 4 1
1
<?php
2
3
namespace Teebot\Api\Command\ValueObject;
4
5
use Teebot\Api\Entity\EntityInterface;
6
7
class ChainItem
8
{
9
    /**
10
     * @var EntityInterface
11
     */
12
    protected $entity;
13
14
    /**
15
     * @var EntityInterface
16
     */
17
    protected $parent;
18
19
    public function __construct(EntityInterface $entity, EntityInterface $parent = null)
20
    {
21
        $this->entity = $entity;
22
        $this->parent = $parent;
23
    }
24
25
    /**
26
     * @return EntityInterface
27
     */
28
    public function getEntity(): EntityInterface
29
    {
30
        return $this->entity;
31
    }
32
33
    /**
34
     * @return EntityInterface
35
     */
36
    public function getParent(): EntityInterface
37
    {
38
        return $this->parent;
39
    }
40
}