Patch::getDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace kujaff\VersionsBundle\Entity;
4
5
/**
6
 * Patch already called
7
 */
8
class Patch
9
{
10
    /**
11
     * @var string
12
     */
13
    private $bundle;
14
15
    /**
16
     * @var \DateTime
17
     */
18
    private $date;
19
20
    /**
21
     * Set bundle
22
     *
23
     * @param string $bundle
24
     * @return Patch
25
     */
26
    public function setBundle($bundle)
27
    {
28
        $this->bundle = $bundle;
29
        return $this;
30
    }
31
32
    /**
33
     * Get bundle
34
     *
35
     * @return string
36
     */
37
    public function getBundle()
38
    {
39
        return $this->bundle;
40
    }
41
42
    /**
43
     * Set date
44
     *
45
     * @param \DateTime $date
46
     * @return Patch
47
     */
48
    public function setDate($date)
49
    {
50
        $this->date = $date;
51
        return $this;
52
    }
53
54
    /**
55
     * Get date
56
     *
57
     * @return \DateTime
58
     */
59
    public function getDate()
60
    {
61
        return $this->date;
62
    }
63
}
64