Passed
Pull Request — master (#85)
by
unknown
03:54
created

VariantPdfModel::setVariant()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BitBag\SyliusWishlistPlugin\Model;
6
7
use Sylius\Component\Core\Model\ProductVariantInterface;
8
9
final class VariantPdfModel implements VariantPdfModelInterface
10
{
11
    /** @var ProductVariantInterface */
12
    private $variant;
13
14
    /** @var string */
15
    private $imagePath;
16
17
    /** @var int */
18
    private $quantity;
19
20
    /** @var string */
21
    private $actualVariant;
22
23
    public function getVariant(): ProductVariantInterface
24
    {
25
        return $this->variant;
26
    }
27
28
    public function setVariant(ProductVariantInterface $variant): void
29
    {
30
        $this->variant = $variant;
31
    }
32
33
    public function getImagePath(): string
34
    {
35
        return $this->imagePath;
36
    }
37
38
    public function setImagePath(string $imagePath): void
39
    {
40
        $this->imagePath = $imagePath;
41
    }
42
43
    public function getQuantity(): int
44
    {
45
        return $this->quantity;
46
    }
47
48
    public function setQuantity(int $quantity): void
49
    {
50
        $this->quantity = $quantity;
51
    }
52
53
    public function getActualVariant(): string
54
    {
55
        return $this->actualVariant;
56
    }
57
58
    public function setActualVariant(string $actualVariant): void
59
    {
60
        $this->actualVariant = $actualVariant;
61
    }
62
}