Product   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 100
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 100
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getValue() 0 3 1
A setValue() 0 5 1
A getCurrency() 0 3 1
A setId() 0 5 1
A setCurrency() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Mapado\RestClientSdk\Tests\Model\JsonLd;
6
7
use Mapado\RestClientSdk\Mapping\Annotations as Rest;
8
9
/**
10
 * Class Product
11
 *
12
 * @author Julien Deniau <[email protected]>
13
 *
14
 * @Rest\Entity(key="product", repository="Mapado\RestClientSdk\Test\Model\ModelRepository")
15
 */
16
class Product
17
{
18
    /**
19
     * id
20
     *
21
     * @var int
22
     *
23
     * @Rest\Id
24
     * @Rest\Attribute(name="id", type="integer")
25
     */
26
    private $id;
27
28
    /**
29
     * value
30
     *
31
     * @var string
32
     *
33
     * @Rest\Attribute(name="product_value", type="string")
34
     */
35
    private $value;
36
37
    /**
38
     * currency
39
     *
40
     * @var string
41
     *
42
     * @Rest\Attribute(name="currency", type="string")
43
     */
44
    private $currency;
45
46
    /**
47
     * Getter for id
48
     *
49
     * @return int
50
     */
51
    public function getId()
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * Setter for id
58
     *
59
     * @param int $id
60
     *
61
     * @return Product
62
     */
63
    public function setId($id)
64
    {
65
        $this->id = $id;
66
67
        return $this;
68
    }
69
70
    /**
71
     * Getter for value
72
     *
73
     * @return string
74
     */
75
    public function getValue()
76
    {
77
        return $this->value;
78
    }
79
80
    /**
81
     * Setter for value
82
     *
83
     * @param string $value
84
     *
85
     * @return Product
86
     */
87
    public function setValue($value)
88
    {
89
        $this->value = $value;
90
91
        return $this;
92
    }
93
94
    /**
95
     * Getter for currency
96
     *
97
     * @return string
98
     */
99
    public function getCurrency()
100
    {
101
        return $this->currency;
102
    }
103
104
    /**
105
     * Setter for currency
106
     *
107
     * @param string $currency
108
     *
109
     * @return Product
110
     */
111
    public function setCurrency($currency)
112
    {
113
        $this->currency = $currency;
114
115
        return $this;
116
    }
117
}
118