TradeNames::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 4
dl 0
loc 11
ccs 6
cts 6
cp 1
crap 1
rs 9.9
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 TradeNames
8
{
9
    private $businessName;
10
11
    private $shortBusinessName;
12
13
    private $currentTradeNames;
14
15
    private $currentStatutoryNames;
16
17 37
    public function __construct(
18
        ?string $businessName,
19
        ?string $shortBusinessName,
20
        ?array $currentTradeNames,
21
        ?array $currentStatutoryNames
22
    ) {
23 37
        $this->businessName = $businessName;
24 37
        $this->shortBusinessName = $shortBusinessName;
25 37
        $this->currentTradeNames = $currentTradeNames;
26 37
        $this->currentStatutoryNames = $currentStatutoryNames;
27 37
    }
28
29 2
    public function getBusinessName(): ?string
30
    {
31 2
        return $this->businessName;
32
    }
33
34 2
    public function getShortBusinessName(): ?string
35
    {
36 2
        return $this->shortBusinessName;
37
    }
38
39 2
    public function getCurrentTradeNames()
40
    {
41 2
        return $this->currentTradeNames;
42
    }
43
44 2
    public function getCurrentStatutoryNames()
45
    {
46 2
        return $this->currentStatutoryNames;
47
    }
48
}
49