BillRequisite   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 3 1
A getId() 0 3 1
1
<?php
2
3
namespace hiqdev\php\billing\bill;
4
5
class BillRequisite
6
{
7
    /** @var int|string|null */
8
    protected $id;
9
10
    protected ?string $name = null;
11
12
    public function __construct($id = null, string $name = null)
13
    {
14
        $this->id = $id;
15
        $this->name = $name;
16
    }
17
18
    public function getId()
19
    {
20
        return $this->id;
21
    }
22
23
    public function getName(): ?string
24
    {
25
        return $this->name;
26
    }
27
}
28