Completed
Push — master ( 645be4...93b826 )
by Taosikai
18s queued 11s
created

Policy::getUpdatedAt()   A

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\Policy;
13
14
use Slince\Shopify\Common\Model\Model;
15
16
class Policy extends Model
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $title;
22
23
    /**
24
     * @var string
25
     */
26
    protected $body;
27
28
    /**
29
     * @var string
30
     */
31
    protected $handle;
32
33
    /**
34
     * @var \DateTimeInterface
35
     */
36
    protected $createdAt;
37
38
    /**
39
     * @var \DateTimeInterface
40
     */
41
    protected $updatedAt;
42
43
    /**
44
     * @var string
45
     */
46
    protected $url;
47
48
    /**
49
     * @return string
50
     */
51
    public function getTitle()
52
    {
53
        return $this->title;
54
    }
55
56
    /**
57
     * @param string $title
58
     *
59
     * @return Policy
60
     */
61
    public function setTitle($title)
62
    {
63
        $this->title = $title;
64
65
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getBody()
72
    {
73
        return $this->body;
74
    }
75
76
    /**
77
     * @param string $body
78
     *
79
     * @return Policy
80
     */
81
    public function setBody($body)
82
    {
83
        $this->body = $body;
84
85
        return $this;
86
    }
87
88
    /**
89
     * @return string
90
     */
91
    public function getHandle()
92
    {
93
        return $this->handle;
94
    }
95
96
    /**
97
     * @param string $handle
98
     *
99
     * @return Policy
100
     */
101
    public function setHandle($handle)
102
    {
103
        $this->handle = $handle;
104
105
        return $this;
106
    }
107
108
    /**
109
     * @return \DateTimeInterface
110
     */
111
    public function getCreatedAt()
112
    {
113
        return $this->createdAt;
114
    }
115
116
    /**
117
     * @param \DateTimeInterface $createdAt
118
     *
119
     * @return Policy
120
     */
121
    public function setCreatedAt($createdAt)
122
    {
123
        $this->createdAt = $createdAt;
124
125
        return $this;
126
    }
127
128
    /**
129
     * @return \DateTimeInterface
130
     */
131
    public function getUpdatedAt()
132
    {
133
        return $this->updatedAt;
134
    }
135
136
    /**
137
     * @param \DateTimeInterface $updatedAt
138
     *
139
     * @return Policy
140
     */
141
    public function setUpdatedAt($updatedAt)
142
    {
143
        $this->updatedAt = $updatedAt;
144
145
        return $this;
146
    }
147
148
    /**
149
     * @return string
150
     */
151
    public function getUrl()
152
    {
153
        return $this->url;
154
    }
155
156
    /**
157
     * @param string $url
158
     *
159
     * @return Policy
160
     */
161
    public function setUrl($url)
162
    {
163
        $this->url = $url;
164
165
        return $this;
166
    }
167
}