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

Resource   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 5
c 1
b 0
f 0
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10

4 Methods

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