Completed
Push — dev/plugin-cache ( 7aa481 )
by Kiyotaka
05:27
created

DeliveryTime::getUpdateDate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Eccube\Entity;
15
16
use Doctrine\ORM\Mapping as ORM;
17
18
if (!class_exists('\Eccube\Entity\DeliveryTime')) {
19
    /**
20
     * DeliveryTime
21
     *
22
     * @ORM\Table(name="dtb_delivery_time")
23
     * @ORM\InheritanceType("SINGLE_TABLE")
24
     * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
25
     * @ORM\HasLifecycleCallbacks()
26
     * @ORM\Entity(repositoryClass="Eccube\Repository\DeliveryTimeRepository")
27
     */
28
    class DeliveryTime extends \Eccube\Entity\AbstractEntity
29
    {
30
        public function __toString()
31
        {
32
            return (string) $this->delivery_time;
33
        }
34
35
        /**
36
         * @var int
37
         *
38
         * @ORM\Column(name="id", type="integer", options={"unsigned":true})
39
         * @ORM\Id
40
         * @ORM\GeneratedValue(strategy="IDENTITY")
41
         */
42
        private $id;
43
44
        /**
45
         * @var string
46
         *
47
         * @ORM\Column(name="delivery_time", type="string", length=255)
48
         */
49
        private $delivery_time;
50
51
        /**
52
         * @var \Eccube\Entity\Delivery
53
         *
54
         * @ORM\ManyToOne(targetEntity="Eccube\Entity\Delivery", inversedBy="DeliveryTimes")
55
         * @ORM\JoinColumns({
56
         *   @ORM\JoinColumn(name="delivery_id", referencedColumnName="id")
57
         * })
58
         */
59
        private $Delivery;
60
61
        /**
62
         * @var int
63
         *
64
         * @ORM\Column(name="sort_no", type="smallint", options={"unsigned":true})
65
         */
66
        protected $sort_no;
67
68
        /**
69
         * @var boolean
70
         *
71
         * @ORM\Column(name="visible", type="boolean", options={"default":true})
72
         */
73
        private $visible;
74
75
        /**
76
         * @var \DateTime
77
         *
78
         * @ORM\Column(name="create_date", type="datetimetz")
79
         */
80
        private $create_date;
81
82
        /**
83
         * @var \DateTime
84
         *
85
         * @ORM\Column(name="update_date", type="datetimetz")
86
         */
87
        private $update_date;
88
89
        /**
90
         * Get id.
91
         *
92
         * @return int
93
         */
94
        public function getId()
95
        {
96
            return $this->id;
97
        }
98
99
        /**
100
         * Set deliveryTime.
101
         *
102
         * @param string $deliveryTime
103
         *
104
         * @return DeliveryTime
105
         */
106
        public function setDeliveryTime($deliveryTime)
107
        {
108
            $this->delivery_time = $deliveryTime;
109
110
            return $this;
111
        }
112
113
        /**
114
         * Get deliveryTime.
115
         *
116
         * @return string
117
         */
118
        public function getDeliveryTime()
119
        {
120
            return $this->delivery_time;
121
        }
122
123
        /**
124
         * Set delivery.
125
         *
126
         * @param \Eccube\Entity\Delivery|null $delivery
127
         *
128
         * @return DeliveryTime
129
         */
130
        public function setDelivery(\Eccube\Entity\Delivery $delivery = null)
131
        {
132
            $this->Delivery = $delivery;
133
134
            return $this;
135
        }
136
137
        /**
138
         * Get delivery.
139
         *
140
         * @return \Eccube\Entity\Delivery|null
141
         */
142
        public function getDelivery()
143
        {
144
            return $this->Delivery;
145
        }
146
147
        /**
148
         * Set sort_no.
149
         *
150
         * @param int $sort_no
151
         *
152
         * @return $this
153
         */
154
        public function setSortNo($sort_no)
155
        {
156
            $this->sort_no = $sort_no;
157
158
            return $this;
159
        }
160
161
        /**
162
         * Get sort_no.
163
         *
164
         * @return int
165
         */
166
        public function getSortNo()
167
        {
168
            return $this->sort_no;
169
        }
170
171
        /**
172
         * Set visible
173
         *
174
         * @param boolean $visible
175
         *
176
         * @return DeliveryTime
177
         */
178
        public function setVisible($visible)
179
        {
180
            $this->visible = $visible;
181
182
            return $this;
183
        }
184
185
        /**
186
         * Is the visibility visible?
187
         *
188
         * @return boolean
189
         */
190
        public function isVisible()
191
        {
192
            return $this->visible;
193
        }
194
195
        /**
196
         * Set createDate.
197
         *
198
         * @param \DateTime $createDate
199
         *
200
         * @return DeliveryTime
201
         */
202
        public function setCreateDate($createDate)
203
        {
204
            $this->create_date = $createDate;
205
206
            return $this;
207
        }
208
209
        /**
210
         * Get createDate.
211
         *
212
         * @return \DateTime
213
         */
214
        public function getCreateDate()
215
        {
216
            return $this->create_date;
217
        }
218
219
        /**
220
         * Set updateDate.
221
         *
222
         * @param \DateTime $updateDate
223
         *
224
         * @return DeliveryTime
225
         */
226
        public function setUpdateDate($updateDate)
227
        {
228
            $this->update_date = $updateDate;
229
230
            return $this;
231
        }
232
233
        /**
234
         * Get updateDate.
235
         *
236
         * @return \DateTime
237
         */
238
        public function getUpdateDate()
239
        {
240
            return $this->update_date;
241
        }
242
    }
243
}
244