Completed
Push — master ( 708a27...093324 )
by Philip
24:28
created

GeneratedIntegerIdEntity::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Dontdrinkandroot\Entity;
4
5
class GeneratedIntegerIdEntity implements IntegerIdEntityInterface
6
{
7
    /** @var int */
8
    private $id;
9
10
    public function __construct()
11
    {
12
    }
13
14
    /**
15
     * @return int
16
     */
17
    public function getId()
18
    {
19
        return $this->id;
20
    }
21
22
    /**
23
     * @return bool
24
     */
25
    public function isPersisted()
26
    {
27
        return null !== $this->id;
28
    }
29
}
30