Completed
Push — master ( 4be93f...79933c )
by Guillaume
11:24
created

TimestampEntity   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 36
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCreatedAt() 0 4 1
A setCreatedAt() 0 4 1
A getUpdatedAt() 0 4 1
A setUpdatedAt() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: DIEU
5
 * Date: 10/05/2017
6
 * Time: 02:08
7
 */
8
9
namespace Starkerxp\StructureBundle\Entity;
10
11
use Doctrine\ORM\Mapping as ORM;
12
13
/**
14
 * @ORM\MappedSuperclass
15
 */
16
class TimestampEntity
17
{
18
    /**
19
     * @var \DateTime
20
     *
21
     * @ORM\Column(name="created_at", type="datetime")
22
     */
23
    protected $createdAt;
24
25
    /**
26
     * @var \DateTime
27
     *
28
     * @ORM\Column(name="updated_at", type="datetime", nullable=true)
29
     */
30
    protected $updatedAt;
31
32
    public function getCreatedAt()
33
    {
34
        return $this->createdAt;
35
    }
36
37
    public function setCreatedAt($createdAt)
38
    {
39
        $this->createdAt = $createdAt;
40
    }
41
42
    public function getUpdatedAt()
43
    {
44
        return $this->updatedAt;
45
    }
46
47
    public function setUpdatedAt($updatedAt)
48
    {
49
        $this->updatedAt = $updatedAt;
50
    }
51
}
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...
52