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

Location::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 5
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