Completed
Push — master ( 262c8d...48f584 )
by Julien
9s
created

Product   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 99
rs 10
c 0
b 0
f 0

6 Methods

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