Test Failed
Pull Request — master (#10)
by Laurens
01:52
created

Location   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 42
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getUuid() 0 4 1
A getType() 0 4 1
A getName() 0 4 1
A getDescription() 0 4 1
A isDefault() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\IzettleApi\API\Inventory;
6
7
use LauLamanApps\IzettleApi\API\Inventory\Location\TypeEnum;
8
use Ramsey\Uuid\UuidInterface;
9
10
final class Location
11
{
12
    private $uuid;
13
    private $type;
14
    private $name;
15
    private $description;
16
    private $default;
17
18
    public function __construct(UuidInterface $uuid, TypeEnum $type, string $name, string $description, bool $default)
19
    {
20
        $this->uuid = $uuid;
21
        $this->type = $type;
22
        $this->name = $name;
23
        $this->description = $description;
24
        $this->default = $default;
25
    }
26
27
    public function getUuid(): UuidInterface
28
    {
29
        return $this->uuid;
30
    }
31
32
    public function getType(): TypeEnum
33
    {
34
        return $this->type;
35
    }
36
37
    public function getName(): string
38
    {
39
        return $this->name;
40
    }
41
42
    public function getDescription(): string
43
    {
44
        return $this->description;
45
    }
46
47
    public function isDefault(): bool
48
    {
49
        return $this->default;
50
    }
51
}
52