BillRequisite::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
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