AssignedIntegerIdEntity   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 4 1
1
<?php
2
3
namespace Dontdrinkandroot\Entity;
4
5
/**
6
 * @author Philip Washington Sorst <[email protected]>
7
 */
8
class AssignedIntegerIdEntity implements IntegerIdEntityInterface
9
{
10
    /** @var int */
11
    private $id;
12
13
    /**
14
     * {@inheritdoc}
15
     */
16 2
    public function getId(): ?int
17
    {
18 2
        return $this->id;
19
    }
20
21 2
    public function setId(int $id): void
22
    {
23 2
        $this->id = $id;
24 2
    }
25
}
26