OfferCondition::getReasonText()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\YmlGenerator\Model\Offer;
13
14
/**
15
 * Class OfferCondition
16
 */
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)
67
    {
68
        $this->type = $type;
69
70
        return $this;
71
    }
72
}
73