Completed
Push — master ( 8e28ab...2236d8 )
by Taosikai
15:04
created

TaxLine::getRate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Taosikai <[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
13
namespace Slince\Shopify\Manager\Order;
14
15
class TaxLine
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $title;
21
22
    /**
23
     * @var float
24
     */
25
    protected $price;
26
27
    /**
28
     * @var float
29
     */
30
    protected $rate;
31
32
    /**
33
     * @return string
34
     */
35
    public function getTitle()
36
    {
37
        return $this->title;
38
    }
39
40
    /**
41
     * @param string $title
42
     * @return TaxLine
43
     */
44
    public function setTitle($title)
45
    {
46
        $this->title = $title;
47
48
        return $this;
49
    }
50
51
    /**
52
     * @return float
53
     */
54
    public function getPrice()
55
    {
56
        return $this->price;
57
    }
58
59
    /**
60
     * @param float $price
61
     * @return TaxLine
62
     */
63
    public function setPrice($price)
64
    {
65
        $this->price = $price;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return float
72
     */
73
    public function getRate()
74
    {
75
        return $this->rate;
76
    }
77
78
    /**
79
     * @param float $rate
80
     * @return TaxLine
81
     */
82
    public function setRate($rate)
83
    {
84
        $this->rate = $rate;
85
86
        return $this;
87
    }
88
}