Code Duplication    Length = 10-10 lines in 2 locations

Entity/Card.php 1 location

@@ 249-258 (lines=10) @@
246
     *
247
     * @return Card
248
     */
249
    public function setCreated($created = null)
250
    {
251
        if ($created === null) {
252
            $created = new \DateTime();
253
            $this->setUpdated($created);
254
        }
255
        $this->created = $created;
256
257
        return $this;
258
    }
259
260
    /**
261
     * Get created

Entity/Category.php 1 location

@@ 175-184 (lines=10) @@
172
     *
173
     * @return Category
174
     */
175
    public function setCreated($created = null)
176
    {
177
        if ($created === null) {
178
            $created = new \DateTime();
179
            $this->setUpdated($created);
180
        }
181
        $this->created = $created;
182
183
        return $this;
184
    }
185
186
    /**
187
     * Get created