Completed
Pull Request — master (#629)
by Tom
07:06
created

SimpleEntityWithMultiWordDateTime   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setId() 0 4 1
A getId() 0 4 1
A setMultiWordDate() 0 4 1
A getMultiWordDate() 0 4 1
1
<?php
2
3
namespace DoctrineModuleTest\Stdlib\Hydrator\Asset;
4
5
use DateTime;
6
7
class SimpleEntityWithMultiWordDateTime
8
{
9
    /**
10
     * @var int
11
     */
12
    protected $id;
13
14
    /**
15
     * @var DateTime
16
     */
17
    protected $multiWordDate;
18
19
    public function setId($id)
20
    {
21
        $this->id = $id;
22
    }
23
24
    public function getId()
25
    {
26
        return $this->id;
27
    }
28
29
    public function setMultiWordDate(DateTime $date = null)
30
    {
31
        $this->multiWordDate = $date;
32
    }
33
34
    public function getMultiWordDate()
35
    {
36
        return $this->multiWordDate;
37
    }
38
}
39