AssignedIntegerIdEntity::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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