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

Entity   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 28
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0
rs 10

3 Methods

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