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

TradeNames   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 39
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getBusinessName() 0 4 1
A getShortBusinessName() 0 4 1
A getCurrentTradeNames() 0 4 1
A getCurrentStatutoryNames() 0 4 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