TradeNames   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
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 42
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
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