TimestampableTrait::setUpdatedAt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace DoS\ResourceBundle\Model;
4
5
trait TimestampableTrait
6
{
7
    /**
8
     * @var \DateTime
9
     */
10
    protected $createdAt;
11
12
    /**
13
     * @var \DateTime
14
     */
15
    protected $updatedAt;
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function getCreatedAt()
21
    {
22
        return $this->createdAt;
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function getUpdatedAt()
29
    {
30
        return $this->updatedAt;
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function setCreatedAt(\DateTime $createdAt)
37
    {
38
        $this->createdAt = $createdAt;
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function setUpdatedAt(\DateTime $updatedAt)
45
    {
46
        $this->updatedAt = $updatedAt;
47
    }
48
}
49