Date   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setDate() 0 4 1
A getDate() 0 4 1
1
<?php
2
3
namespace DoctrineORMModuleTest\Assets\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 * @ORM\Table(name="doctrine_orm_module_date")
10
 */
11
class Date
12
{
13
    /**
14
     * @ORM\Id
15
     * @ORM\Column(type="integer");
16
     * @ORM\GeneratedValue(strategy="AUTO")
17
     */
18
    protected $id;
19
20
    /**
21
     * @ORM\Column(type="date", nullable=true)
22
     */
23
    protected $date;
24
25
    /**
26
     * @return int|null
27
     */
28
    public function getId()
29
    {
30
        return $this->id;
31
    }
32
33
    /**
34
     * @param \DateTime $date
35
     */
36
    public function setDate($date)
37
    {
38
        $this->date = $date;
39
    }
40
41
    /**
42
     * @return \DateTime
43
     */
44
    public function getDate()
45
    {
46
        return $this->date;
47
    }
48
}
49