Test Setup Failed
Push — master ( f6c2b2...066293 )
by Marco
03:25
created

Item::setAsin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace SeoFood\AmazonRevenue;
4
5
class Item
6
{
7
    /**
8
     * @var string
9
     */
10
    private $_asin;
11
12
    /**
13
     * @var string
14
     */
15
    private $_eDate;
16
17
    /**
18
     * @var string
19
     */
20
    private $_type;
21
22
    /**
23
     * @var float
24
     */
25
    private $_price;
26
27
    /**
28
     * @var float
29
     */
30
    private $_commission;
31
32
    /**
33
     * @var string
34
     */
35
    private $_name;
36
37
    /**
38
     * @var int
39
     */
40
    private $_quantity;
41
42
    /**
43
     * @var DateTime
44
     */
45
    private $_date;
46
47
    /**
48
     * @param float $commission
49
     */
50
    public function setCommission($commission)
51
    {
52
        $this->_commission = $commission;
53
    }
54
55
    /**
56
     * @return float
57
     */
58
    public function getCommission()
59
    {
60
        return $this->_commission;
61
    }
62
63
    /**
64
     * @param \DateTime $date
65
     */
66
    public function setDate($date)
67
    {
68
        $this->_date = $date;
0 ignored issues
show
Documentation Bug introduced by
It seems like $date of type object<DateTime> is incompatible with the declared type object<SeoFood\AmazonRevenue\DateTime> of property $_date.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
69
    }
70
71
    /**
72
     * @return \DateTime
73
     */
74
    public function getDate()
75
    {
76
        return $this->_date;
77
    }
78
79
    /**
80
     * @param string $eDate
81
     */
82
    public function setEDate($eDate)
83
    {
84
        $this->_eDate = $eDate;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getEDate()
91
    {
92
        return $this->_eDate;
93
    }
94
95
    /**
96
     * @param string $name
97
     */
98
    public function setName($name)
99
    {
100
        $this->_name = $name;
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function getName()
107
    {
108
        return $this->_name;
109
    }
110
111
    /**
112
     * @param float $price
113
     */
114
    public function setPrice($price)
115
    {
116
        $this->_price = $price;
117
    }
118
119
    /**
120
     * @return float
121
     */
122
    public function getPrice()
123
    {
124
        return $this->_price;
125
    }
126
127
    /**
128
     * @param int $quantity
129
     */
130
    public function setQuantity($quantity)
131
    {
132
        $this->_quantity = $quantity;
133
    }
134
135
    /**
136
     * @return int
137
     */
138
    public function getQuantity()
139
    {
140
        return $this->_quantity;
141
    }
142
143
    /**
144
     * @param string $type
145
     */
146
    public function setType($type)
147
    {
148
        $this->_type = $type;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getType()
155
    {
156
        return $this->_type;
157
    }
158
159
    /**
160
     * @param string $asin
161
     */
162
    public function setAsin($asin)
163
    {
164
        $this->_asin = $asin;
165
    }
166
167
    /**
168
     * @return string
169
     */
170
    public function getAsin()
171
    {
172
        return $this->_asin;
173
    }
174
}
175