Completed
Pull Request — master (#23)
by
unknown
01:14
created

OfferCondition::setReasonText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Bukashk0zzz\YmlGenerator\Model\Offer;
4
5
/**
6
 * Class OfferCondition
7
 */
8
class OfferCondition
9
{
10
11
    /**
12
     * @var string
13
     */
14
    private $type;
15
16
17
    /**
18
     * @var string
19
     */
20
    private $reasonText;
21
22
23
    /**
24
     * @return string
25
     */
26
    public function getReasonText()
27
    {
28
29
        return $this->reasonText;
30
    }
31
32
33
    /**
34
     * @return string
35
     */
36
    public function getType()
37
    {
38
        return $this->type;
39
    }
40
41
    /**
42
     * Description text for the reason for markdowns
43
     *
44
     * @param $reasonText
45
     *
46
     * @return $this
47
     */
48
    public function setReasonText($reasonText)
49
    {
50
        $this->reasonText = $reasonText;
51
52
        return $this;
53
    }
54
55
56
    /**
57
     * Set product condition
58
     *
59
     * @param string $type
60
     *
61
     * @return $this
62
     */
63
    public function setType($type)
64
    {
65
66
        $this->type = $type;
67
68
        return $this;
69
    }
70
}