Passed
Push — main ( ff735f...1e203e )
by Daryl
02:54
created

Resource::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Clubdeuce\Tessitura\Base;
4
5
class Resource extends Base
6
{
7 2
    public function getId(): string
8
    {
9 2
        return $this->extraArgs['Id'] ?? '';
10
    }
11
12 1
    public function setId(string $id): void
13
    {
14 1
        $this->extraArgs['Id'] = $id;
15
    }
16
17 2
    public function getDescription(): string
18
    {
19 2
        return $this->extraArgs['Description'];
20
    }
21
22 1
    public function setDescription(string $description): void
23
    {
24 1
        $this->extraArgs['Description'] = $description;
25
    }
26
}
27