Webhook::getAddress()   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\Webhook;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class Webhook extends Model
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $address;
22
23
    /**
24
     * @var string
25
     */
26
    protected $topic;
27
28
    /**
29
     * @var \DateTimeInterface
30
     */
31
    protected $createdAt;
32
33
    /**
34
     * @var \DateTimeInterface
35
     */
36
    protected $updatedAt;
37
38
    /**
39
     * @var string
40
     */
41
    protected $format;
42
43
    /**
44
     * @var array
45
     */
46
    protected $fields;
47
48
    /**
49
     * @var array
50
     */
51
    protected $metafieldNamespaces;
52
53
    /**
54
     * @return string
55
     */
56
    public function getAddress()
57
    {
58
        return $this->address;
59
    }
60
61
    /**
62
     * @param string $address
63
     *
64
     * @return Webhook
65
     */
66
    public function setAddress($address)
67
    {
68
        $this->address = $address;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getTopic()
77
    {
78
        return $this->topic;
79
    }
80
81
    /**
82
     * @param string $topic
83
     *
84
     * @return Webhook
85
     */
86
    public function setTopic($topic)
87
    {
88
        $this->topic = $topic;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return \DateTimeInterface
95
     */
96
    public function getCreatedAt()
97
    {
98
        return $this->createdAt;
99
    }
100
101
    /**
102
     * @param \DateTimeInterface $createdAt
103
     *
104
     * @return Webhook
105
     */
106
    public function setCreatedAt($createdAt)
107
    {
108
        $this->createdAt = $createdAt;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @return \DateTimeInterface
115
     */
116
    public function getUpdatedAt()
117
    {
118
        return $this->updatedAt;
119
    }
120
121
    /**
122
     * @param \DateTimeInterface $updatedAt
123
     *
124
     * @return Webhook
125
     */
126
    public function setUpdatedAt($updatedAt)
127
    {
128
        $this->updatedAt = $updatedAt;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getFormat()
137
    {
138
        return $this->format;
139
    }
140
141
    /**
142
     * @param string $format
143
     *
144
     * @return Webhook
145
     */
146
    public function setFormat($format)
147
    {
148
        $this->format = $format;
149
150
        return $this;
151
    }
152
153
    /**
154
     * @return array
155
     */
156
    public function getFields()
157
    {
158
        return $this->fields;
159
    }
160
161
    /**
162
     * @param array $fields
163
     *
164
     * @return Webhook
165
     */
166
    public function setFields($fields)
167
    {
168
        $this->fields = $fields;
169
170
        return $this;
171
    }
172
173
    /**
174
     * @return array
175
     */
176
    public function getMetafieldNamespaces()
177
    {
178
        return $this->metafieldNamespaces;
179
    }
180
181
    /**
182
     * @param array $metafieldNamespaces
183
     *
184
     * @return Webhook
185
     */
186
    public function setMetafieldNamespaces($metafieldNamespaces)
187
    {
188
        $this->metafieldNamespaces = $metafieldNamespaces;
189
190
        return $this;
191
    }
192
}