Completed
Pull Request — master (#8)
by Mariusz
02:30
created

Variant::setProduct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Xsolve\AssociateTests\Functional\GenericEntity\Mock\Model;
4
5
class Variant
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $id;
11
12
    /**
13
     * @var Product
14
     */
15
    protected $product;
16
17
    /**
18
     * @var int
19
     */
20
    protected $price;
21
22
    /**
23
     * @return string
24
     */
25
    public function getId(): string
26
    {
27
        return $this->id;
28
    }
29
30
    /**
31
     * @param string $id
32
     */
33
    public function setId(string $id)
34
    {
35
        $this->id = $id;
36
    }
37
38
    /**
39
     * @return Product
40
     */
41
    public function getProduct(): Product
42
    {
43
        return $this->product;
44
    }
45
46
    /**
47
     * @param Product $product
48
     */
49
    public function setProduct(Product $product)
50
    {
51
        $this->product = $product;
52
    }
53
54
    /**
55
     * @return int
56
     */
57
    public function getPrice(): int
58
    {
59
        return $this->price;
60
    }
61
62
    /**
63
     * @param int $price
64
     */
65
    public function setPrice(int $price)
66
    {
67
        $this->price = $price;
68
    }
69
}
70