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
Pull Request — master (#153)
by joseph
29:27
created

AbstractEntityUpdateDto::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
ccs 0
cts 4
cp 0
crap 2
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Entity\DataTransferObjects;
4
5
use EdmondsCommerce\DoctrineStaticMeta\Entity\Interfaces\DataTransferObjectInterface;
6
use Ramsey\Uuid\UuidInterface;
7
8
class AbstractEntityUpdateDto implements DataTransferObjectInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    private static $entityFqn;
14
    /**
15
     * @var UuidInterface
16
     */
17
    private $id;
18
19
    public function __construct(string $entityFqn, UuidInterface $id)
20
    {
21
        self::$entityFqn = $entityFqn;
22
        $this->id        = $id;
23
    }
24
25
    public static function getEntityFqn(): string
26
    {
27
        return self::$entityFqn;
28
    }
29
30
    public function getId(): UuidInterface
31
    {
32
        return $this->id;
33
    }
34
35
    public function setId(UuidInterface $id)
36
    {
37
        $this->id = $id;
38
39
        return $this;
40
    }
41
}
42