Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class OfferCondition |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $type; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $reasonText; |
||
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getReasonText() |
||
33 | { |
||
34 | return $this->reasonText; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getType() |
||
41 | { |
||
42 | return $this->type; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Description text for the reason for markdowns |
||
47 | * |
||
48 | * @param string $reasonText |
||
49 | * |
||
50 | * @return $this |
||
51 | */ |
||
52 | public function setReasonText($reasonText) |
||
53 | { |
||
54 | $this->reasonText = $reasonText; |
||
55 | |||
56 | return $this; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Set product condition |
||
61 | * |
||
62 | * @param string $type |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function setType($type) |
||
71 | } |
||
72 | } |
||
73 |