Completed
Branch master (3a3d8d)
by Guillaume
05:03
created

TimestampTrait::getUpdatedAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: DIEU
5
 * Date: 10/05/2017
6
 * Time: 02:24
7
 */
8
9
namespace Starkerxp\StructureBundle\Entity;
10
11
use Doctrine\ORM\Mapping as ORM;
12
13
trait TimestampTrait
14
{
15
16
    /**
17
     * @var \DateTime
18
     *
19
     * @ORM\Column(name="created_at", type="datetime")
20
     */
21
    protected $createdAt;
22
23
    /**
24
     * @var \DateTime
25
     *
26
     * @ORM\Column(name="updated_at", type="datetime", nullable=true)
27
     */
28
    protected $updatedAt;
29
30
    public function getCreatedAt()
31
    {
32
        return $this->createdAt;
33
    }
34
35
    public function setCreatedAt($createdAt)
36
    {
37
        $this->createdAt = $createdAt;
38
    }
39
40
    public function getUpdatedAt()
41
    {
42
        return $this->updatedAt;
43
    }
44
45
    public function setUpdatedAt($updatedAt)
46
    {
47
        $this->updatedAt = $updatedAt;
48
    }
49
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
50