Test Failed
Pull Request — master (#10)
by Laurens
02:11
created

Variant::getVariantUuid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\IzettleApi\API\Inventory\Location;
6
7
use Ramsey\Uuid\UuidInterface;
8
9
final class Variant
10
{
11
    private $locationUuid;
12
    private $locationType;
13
    private $productUuid;
14
    private $variantUuid;
15
    private $balance;
16
17
    public function __construct(
18
        UuidInterface $locationUuid,
19
        TypeEnum $locationType,
20
        UuidInterface $productUuid,
21
        UuidInterface $variantUuid,
22
        int $balance
23
    ) {
24
        $this->locationUuid = $locationUuid;
25
        $this->locationType = $locationType;
26
        $this->productUuid = $productUuid;
27
        $this->variantUuid = $variantUuid;
28
        $this->balance = $balance;
29
    }
30
31
    public function getLocationUuid(): UuidInterface
32
    {
33
        return $this->locationUuid;
34
    }
35
36
    public function getLocationType(): TypeEnum
37
    {
38
        return $this->locationType;
39
    }
40
41
    public function getProductUuid(): UuidInterface
42
    {
43
        return $this->productUuid;
44
    }
45
46
    public function getVariantUuid(): UuidInterface
47
    {
48
        return $this->variantUuid;
49
    }
50
51
    public function getBalance(): int
52
    {
53
        return $this->balance;
54
    }
55
}
56