Completed
Push — master ( 9403bf...9c8c23 )
by Vladimir
02:29
created

Entity::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AcquiroPay\Models\Entities;
6
7
abstract class Entity
8
{
9
    /**
10
     * @var int
11
     */
12
    private $id;
13
14
    public function __construct(int $id = null)
15
    {
16
        $this->id = $id;
17
    }
18
19
    /**
20
     * @return int|null
21
     */
22
    public function getId(): ?int
23
    {
24
        return $this->id;
25
    }
26
27
    /**
28
     * @param int $id
29
     */
30
    public function setId(int $id)
31
    {
32
        $this->id = $id;
33
    }
34
}
35