Patch   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setBundle() 0 5 1
A getBundle() 0 4 1
A setDate() 0 5 1
A getDate() 0 4 1
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