BusinessActivity::getSbiCodeDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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