MagentoObjectModule   A
last analyzed

Complexity

Total Complexity 15

Size/Duplication

Total Lines 183
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 30
dl 0
loc 183
rs 10
c 0
b 0
f 0
wmc 15

15 Methods

Rating   Name   Duplication   Size   Complexity  
A prepare() 0 3 1
A setAddress() 0 5 1
A getModule() 0 3 1
A setUrl() 0 5 1
A getUrl() 0 3 1
A getMetadata() 0 3 1
A setCustomer() 0 5 1
A getCustomer() 0 3 1
A setItems() 0 5 1
A getAddress() 0 3 1
A setModule() 0 5 1
A setMetadata() 0 5 1
A getItems() 0 3 1
A getOrder() 0 3 1
A setOrder() 0 5 1
1
<?php
2
3
namespace ShopperLibrary\ObjectModule;
4
5
/**
6
 * Class MagentoObjectModule
7
 * @package ShopperLibrary\ObjectModule
8
 */
9
class MagentoObjectModule extends ObjectModuleAbstract implements ObjectModuleInterface
10
{
11
    /**
12
     * @var array
13
     */
14
    public $order;
15
16
    /**
17
     * @var array
18
     */
19
    public $customer;
20
21
    /**
22
     * @var array
23
     */
24
    public $items;
25
26
    /**
27
     * @var array
28
     */
29
    public $address;
30
31
    /**
32
     * @var array
33
     */
34
    public $module;
35
36
    /**
37
     * @var array
38
     */
39
    public $url;
40
41
    /**
42
     * @var array
43
     */
44
    public $metadata;
45
46
    /**
47
     * @return array
48
     */
49
    public function getOrder()
50
    {
51
        return $this->order;
52
    }
53
54
    /**
55
     * @param array $order
56
     *
57
     * @return MagentoObjectModule
58
     */
59
    public function setOrder($order)
60
    {
61
        $this->order = $order;
62
63
        return $this;
64
    }
65
66
    /**
67
     * @return array
68
     */
69
    public function getCustomer()
70
    {
71
        return $this->customer;
72
    }
73
74
    /**
75
     * @param array $customer
76
     *
77
     * @return MagentoObjectModule
78
     */
79
    public function setCustomer($customer)
80
    {
81
        $this->customer = $customer;
82
83
        return $this;
84
    }
85
86
    /**
87
     * @return array
88
     */
89
    public function getItems()
90
    {
91
        return $this->items;
92
    }
93
94
    /**
95
     * @param array $items
96
     *
97
     * @return MagentoObjectModule
98
     */
99
    public function setItems($items)
100
    {
101
        $this->items = $items;
102
103
        return $this;
104
    }
105
106
    /**
107
     * @return array
108
     */
109
    public function getAddress()
110
    {
111
        return $this->address;
112
    }
113
114
    /**
115
     * @param array $address
116
     *
117
     * @return MagentoObjectModule
118
     */
119
    public function setAddress($address)
120
    {
121
        $this->address = $address;
122
123
        return $this;
124
    }
125
126
    /**
127
     * @return array
128
     */
129
    public function getModule()
130
    {
131
        return $this->module;
132
    }
133
134
    /**
135
     * @param array $module
136
     *
137
     * @return MagentoObjectModule
138
     */
139
    public function setModule($module)
140
    {
141
        $this->module = $module;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return array
148
     */
149
    public function getUrl()
150
    {
151
        return $this->url;
152
    }
153
154
    /**
155
     * @param array $url
156
     *
157
     * @return MagentoObjectModule
158
     */
159
    public function setUrl($url)
160
    {
161
        $this->url = $url;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @return array
168
     */
169
    public function getMetadata()
170
    {
171
        return $this->metadata;
172
    }
173
174
    /**
175
     * @param array $metadata
176
     *
177
     * @return MagentoObjectModule
178
     */
179
    public function setMetadata($metadata)
180
    {
181
        $this->metadata = $metadata;
182
183
        return $this;
184
    }
185
186
    /**
187
     * I have nothing to prepare.
188
     */
189
    public function prepare()
190
    {
191
        return;
192
    }
193
}
194