BusinessActivity   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 30
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getSbiCode() 0 4 1
A getSbiCodeDescription() 0 4 1
A isMainSbi() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Werkspot\KvkApi\Client\Profile\Company;
6
7
final class BusinessActivity
8
{
9
    private $sbiCode;
10
11
    private $sbiCodeDescription;
12
13
    private $mainSbi;
14
15 15
    public function __construct(int $sbiCode, string $sbiCodeDescription, bool $mainSbi)
16
    {
17 15
        $this->sbiCode = $sbiCode;
18 15
        $this->sbiCodeDescription = $sbiCodeDescription;
19 15
        $this->mainSbi = $mainSbi;
20 15
    }
21
22 1
    public function getSbiCode(): int
23
    {
24 1
        return $this->sbiCode;
25
    }
26
27 1
    public function getSbiCodeDescription(): string
28
    {
29 1
        return $this->sbiCodeDescription;
30
    }
31
32 1
    public function isMainSbi(): bool
33
    {
34 1
        return $this->mainSbi;
35
    }
36
}
37