ShippingZone::getCountries()   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\ShippingZone;
13
14
use Slince\Shopify\Manager\Country\Country;
15
use Slince\Shopify\Common\Model\Model;
16
use Slince\Shopify\Manager\Province\Province;
17
18
class ShippingZone extends Model
19
{
20
    /**
21
     * @var string
22
     */
23
    protected $name;
24
25
    /**
26
     * @var Country[]
27
     */
28
    protected $countries;
29
30
    /**
31
     * @var Province[]
32
     */
33
    protected $provinces;
34
35
    /**
36
     * @var array
37
     */
38
    protected $carrierShippingRateProviders;
39
40
    /**
41
     * @var array
42
     */
43
    protected $priceBasedShippingRates;
44
45
    /**
46
     * @var array
47
     */
48
    protected $weightBasedShippingRates;
49
50
    /**
51
     * @return string
52
     */
53
    public function getName()
54
    {
55
        return $this->name;
56
    }
57
58
    /**
59
     * @param string $name
60
     *
61
     * @return ShippingZone
62
     */
63
    public function setName($name)
64
    {
65
        $this->name = $name;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return Country[]
72
     */
73
    public function getCountries()
74
    {
75
        return $this->countries;
76
    }
77
78
    /**
79
     * @param Country[] $countries
80
     *
81
     * @return ShippingZone
82
     */
83
    public function setCountries($countries)
84
    {
85
        $this->countries = $countries;
86
87
        return $this;
88
    }
89
90
    /**
91
     * @return Province[]
92
     */
93
    public function getProvinces()
94
    {
95
        return $this->provinces;
96
    }
97
98
    /**
99
     * @param Province[] $provinces
100
     *
101
     * @return ShippingZone
102
     */
103
    public function setProvinces($provinces)
104
    {
105
        $this->provinces = $provinces;
106
107
        return $this;
108
    }
109
110
    /**
111
     * @return array
112
     */
113
    public function getCarrierShippingRateProviders()
114
    {
115
        return $this->carrierShippingRateProviders;
116
    }
117
118
    /**
119
     * @param array $carrierShippingRateProviders
120
     *
121
     * @return ShippingZone
122
     */
123
    public function setCarrierShippingRateProviders($carrierShippingRateProviders)
124
    {
125
        $this->carrierShippingRateProviders = $carrierShippingRateProviders;
126
127
        return $this;
128
    }
129
130
    /**
131
     * @return array
132
     */
133
    public function getPriceBasedShippingRates()
134
    {
135
        return $this->priceBasedShippingRates;
136
    }
137
138
    /**
139
     * @param array $priceBasedShippingRates
140
     *
141
     * @return ShippingZone
142
     */
143
    public function setPriceBasedShippingRates($priceBasedShippingRates)
144
    {
145
        $this->priceBasedShippingRates = $priceBasedShippingRates;
146
147
        return $this;
148
    }
149
150
    /**
151
     * @return array
152
     */
153
    public function getWeightBasedShippingRates()
154
    {
155
        return $this->weightBasedShippingRates;
156
    }
157
158
    /**
159
     * @param array $weightBasedShippingRates
160
     *
161
     * @return ShippingZone
162
     */
163
    public function setWeightBasedShippingRates($weightBasedShippingRates)
164
    {
165
        $this->weightBasedShippingRates = $weightBasedShippingRates;
166
167
        return $this;
168
    }
169
}