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

Address::setProvinceCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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
namespace Slince\Shopify\Manager\CustomerAddress;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class Address extends Model
17
{
18
    use AddressTrait;
19
20
    /**
21
     * @var int
22
     */
23
    protected $customerId;
24
25
26
    /**
27
     * @var bool
28
     */
29
    protected $default;
30
31
    /**
32
     * @return int
33
     */
34
    public function getCustomerId()
35
    {
36
        return $this->customerId;
37
    }
38
39
    /**
40
     * @param int $customerId
41
     *
42
     * @return Address
43
     */
44
    public function setCustomerId($customerId)
45
    {
46
        $this->customerId = $customerId;
47
48
        return $this;
49
    }
50
51
    /**
52
     * @return bool
53
     */
54
    public function isDefault()
55
    {
56
        return $this->default;
57
    }
58
59
    /**
60
     * @param bool $default
61
     *
62
     * @return Address
63
     */
64
    public function setDefault($default)
65
    {
66
        $this->default = $default;
67
68
        return $this;
69
    }
70
}