Completed
Push — master ( 0db490...224576 )
by Taosikai
11s
created

DiscountCode::setPriceRuleId()   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
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Slince <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Slince\Shopify\Manager\DiscountCode;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class DiscountCode extends Model
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $code;
22
23
    /**
24
     * @var string
25
     */
26
    protected $createdAt;
27
28
    /**
29
     * @var int
30
     */
31
    protected $priceRuleId;
32
33
    /**
34
     * @var int
35
     */
36
    protected $usageCount;
37
38
    /**
39
     * @var string
40
     */
41
    public function getCode()
42
    {
43
        return $this->code;
44
    }
45
46
    /**
47
     * @param string $code
48
     *
49
     * @return DiscountCode
50
     */
51
    public function setCode($code)
52
    {
53
        $this->code = $code;
54
55
        return $this;
56
    }
57
58
    /**
59
     * @var string
60
     */
61
    public function getCreatedAt()
62
    {
63
        return $this->createdAt;
64
    }
65
66
    /**
67
     * @param string $createdAt
68
     *
69
     * @return DiscountCode
70
     */
71
    public function setCreatedAt($createdAt)
72
    {
73
        $this->createdAt = $createdAt;
74
75
        return $this;
76
    }
77
78
    /**
79
     * @var int
80
     */
81
    public function getPriceRuleId()
82
    {
83
        return $this->priceRuleId;
84
    }
85
86
    /**
87
     * @param int $priceRuleId
88
     *
89
     * @return DiscountCode
90
     */
91
    public function setPriceRuleId($priceRuleId)
92
    {
93
        $this->priceRuleId = $priceRuleId;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @var int
100
     */
101
    public function getUsageCount()
102
    {
103
        return $this->usageCount;
104
    }
105
106
    /**
107
     * @param int $usageCount
108
     *
109
     * @return DiscountCode
110
     */
111
    public function setUsageCount($usageCount)
112
    {
113
        $this->usageCount = $usageCount;
114
115
        return $this;
116
    }
117
118
}