Item   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
c 1
b 0
f 1
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A setId() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace midorikocak\nanodb;
6
7
use midorikocak\arraytools\ArrayConvertableTrait;
8
use midorikocak\arraytools\ArrayUpdateableTrait;
9
10
class Item
11
{
12
    use ArrayConvertableTrait;
13
    use ArrayUpdateableTrait;
14
15
    protected ?string $id = null;
16
17
    public function getId(): ?string
18
    {
19
        return $this->id;
20
    }
21
22
    public function setId(?string $id): void
23
    {
24
        $this->id = $id;
25
    }
26
}
27