Address   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 54
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomerId() 0 4 1
A setCustomerId() 0 6 1
A isDefault() 0 4 1
A setDefault() 0 6 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\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
     * @var bool
27
     */
28
    protected $default;
29
30
    /**
31
     * @return int
32
     */
33
    public function getCustomerId()
34
    {
35
        return $this->customerId;
36
    }
37
38
    /**
39
     * @param int $customerId
40
     *
41
     * @return Address
42
     */
43
    public function setCustomerId($customerId)
44
    {
45
        $this->customerId = $customerId;
46
47
        return $this;
48
    }
49
50
    /**
51
     * @return bool
52
     */
53
    public function isDefault()
54
    {
55
        return $this->default;
56
    }
57
58
    /**
59
     * @param bool $default
60
     *
61
     * @return Address
62
     */
63
    public function setDefault($default)
64
    {
65
        $this->default = $default;
66
67
        return $this;
68
    }
69
}