Passed
Push — master ( 6daa1b...44aa55 )
by Przemysław eRIZ
04:09
created

VariantPdfModel::setImagePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
/*
4
 * This file was created by developers working at BitBag
5
 * Do you need more information about us and what we do? Visit our https://bitbag.io website!
6
 * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
7
*/
8
9
declare(strict_types=1);
10
11
namespace BitBag\SyliusWishlistPlugin\Model;
12
13
use Sylius\Component\Core\Model\ProductVariantInterface;
14
15
final class VariantPdfModel implements VariantPdfModelInterface
16
{
17
    /** @var ProductVariantInterface */
18
    private $variant;
19
20
    /** @var string */
21
    private $imagePath;
22
23
    /** @var int */
24
    private $quantity;
25
26
    /** @var string */
27
    private $actualVariant;
28
29
    public function getVariant(): ProductVariantInterface
30
    {
31
        return $this->variant;
32
    }
33
34
    public function setVariant(ProductVariantInterface $variant): void
35
    {
36
        $this->variant = $variant;
37
    }
38
39
    public function getImagePath(): string
40
    {
41
        return $this->imagePath;
42
    }
43
44
    public function setImagePath(string $imagePath): void
45
    {
46
        $this->imagePath = $imagePath;
47
    }
48
49
    public function getQuantity(): int
50
    {
51
        return $this->quantity;
52
    }
53
54
    public function setQuantity(int $quantity): void
55
    {
56
        $this->quantity = $quantity;
57
    }
58
59
    public function getActualVariant(): string
60
    {
61
        return $this->actualVariant;
62
    }
63
64
    public function setActualVariant(string $actualVariant): void
65
    {
66
        $this->actualVariant = $actualVariant;
67
    }
68
}
69