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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 32
rs 10
c 0
b 0
f 0
ccs 0
cts 17
cp 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setId() 0 5 1
A getEntityFqn() 0 3 1
A getId() 0 3 1
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