FulfillmentService   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 127
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 1
dl 0
loc 127
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 6 1
A getCallbackUrl() 0 4 1
A setCallbackUrl() 0 6 1
A isInventoryManagement() 0 4 1
A setInventoryManagement() 0 6 1
A isTrackingSupport() 0 4 1
A setTrackingSupport() 0 6 1
A isRequiresShippingMethod() 0 4 1
A setRequiresShippingMethod() 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\FulfillmentService;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class FulfillmentService extends Model
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $name;
22
23
    /**
24
     * @var string
25
     */
26
    protected $callbackUrl;
27
28
    /**
29
     * @var bool
30
     */
31
    protected $inventoryManagement;
32
33
    /**
34
     * @var bool
35
     */
36
    protected $trackingSupport;
37
38
    /**
39
     * @var bool
40
     */
41
    protected $requiresShippingMethod;
42
43
    /**
44
     * @return string
45
     */
46
    public function getName()
47
    {
48
        return $this->name;
49
    }
50
51
    /**
52
     * @param string $name
53
     *
54
     * @return FulfillmentService
55
     */
56
    public function setName($name)
57
    {
58
        $this->name = $name;
59
60
        return $this;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getCallbackUrl()
67
    {
68
        return $this->callbackUrl;
69
    }
70
71
    /**
72
     * @param string $callbackUrl
73
     *
74
     * @return FulfillmentService
75
     */
76
    public function setCallbackUrl($callbackUrl)
77
    {
78
        $this->callbackUrl = $callbackUrl;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return bool
85
     */
86
    public function isInventoryManagement()
87
    {
88
        return $this->inventoryManagement;
89
    }
90
91
    /**
92
     * @param bool $inventoryManagement
93
     *
94
     * @return FulfillmentService
95
     */
96
    public function setInventoryManagement($inventoryManagement)
97
    {
98
        $this->inventoryManagement = $inventoryManagement;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @return bool
105
     */
106
    public function isTrackingSupport()
107
    {
108
        return $this->trackingSupport;
109
    }
110
111
    /**
112
     * @param bool $trackingSupport
113
     *
114
     * @return FulfillmentService
115
     */
116
    public function setTrackingSupport($trackingSupport)
117
    {
118
        $this->trackingSupport = $trackingSupport;
119
120
        return $this;
121
    }
122
123
    /**
124
     * @return bool
125
     */
126
    public function isRequiresShippingMethod()
127
    {
128
        return $this->requiresShippingMethod;
129
    }
130
131
    /**
132
     * @param bool $requiresShippingMethod
133
     *
134
     * @return FulfillmentService
135
     */
136
    public function setRequiresShippingMethod($requiresShippingMethod)
137
    {
138
        $this->requiresShippingMethod = $requiresShippingMethod;
139
140
        return $this;
141
    }
142
}