Completed
Pull Request — dev (#26)
by nonanerz
04:24
created

DtoEvent::setEnd()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
ccs 0
cts 4
cp 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace AppBundle\Entity\DTO;
4
5
use Symfony\Component\Validator\Constraints as Assert;
6
7
class DtoEvent
8
{
9
    private $user;
10
11
    private $summary;
12
13
    private $description;
14
15
    private $location;
16
17
    /**
18
     * @var
19
     * @Assert\NotBlank()
20
     */
21
    private $start;
22
    /**
23
     * @var
24
     * @Assert\NotBlank()
25
     */
26
    private $end;
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getSummary()
32
    {
33
        return $this->summary;
34
    }
35
36
    /**
37
     * @param mixed $summary
38
     */
39
    public function setSummary($summary)
40
    {
41
        $this->summary = $summary;
42
    }
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getDescription()
48
    {
49
        return $this->description;
50
    }
51
52
    /**
53
     * @param mixed $description
54
     */
55
    public function setDescription($description)
56
    {
57
        $this->description = $description;
58
    }
59
60
    /**
61
     * @return mixed
62
     */
63
    public function getLocation()
64
    {
65
        return $this->location;
66
    }
67
68
    /**
69
     * @param mixed $location
70
     */
71
    public function setLocation($location)
72
    {
73
        $this->location = $location;
74
    }
75
76
    /**
77
     * @return mixed
78
     */
79
    public function getStart()
80
    {
81
        return $this->start;
82
    }
83
84
    /**
85
     * @param mixed $start
86
     */
87
    public function setStart($start)
88
    {
89
        $this->start = $start;
90
    }
91
92
    /**
93
     * @return mixed
94
     */
95
    public function getEnd()
96
    {
97
        return $this->end;
98
    }
99
100
    /**
101
     * @param mixed $end
102
     */
103
    public function setEnd($end)
104
    {
105
        $this->end = $end;
106
    }
107
108
    /**
109
     * @return mixed
110
     */
111
    public function getUser()
112
    {
113
        return $this->user;
114
    }
115
116
    /**
117
     * @param mixed $user
118
     *
119
     * @return $this
120
     */
121
    public function setUser($user)
122
    {
123
        $this->user = $user;
124
125
        return $this;
126
    }
127
}
128