DiscountAllocation::getAmount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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\Order;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class DiscountAllocation extends Model
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $amount;
22
23
    /**
24
     * @var string
25
     */
26
    protected $discountApplicationIndex;
27
28
    /**
29
     * @return string
30
     */
31
    public function getAmount()
32
    {
33
        return $this->amount;
34
    }
35
36
    /**
37
     * @param string $amount
38
     *                                                                
39
     * @return DiscountAllocation
40
     */
41
    public function setAmount($amount)
42
    {
43
        $this->amount = $amount;
44
45
        return $this;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getDiscountApplicationIndex()
52
    {
53
        return $this->discountApplicationIndex;
54
    }
55
56
    /**
57
     * @param string $discountApplicationIndex
58
     *                                                                
59
     * @return DiscountAllocation
60
     */
61
    public function setDiscountApplicationIndex($discountApplicationIndex)
62
    {
63
        $this->discountApplicationIndex = $discountApplicationIndex;
64
65
        return $this;
66
    }
67
}