Passed
Push — master ( 7cd6c5...dd963e )
by Laurens
04:05
created

TradeNames::getShortBusinessName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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