1 | <?php |
||
8 | class DtoEvent implements \JsonSerializable |
||
9 | { |
||
10 | /** |
||
11 | * @var User $user |
||
12 | * |
||
13 | * @var Assert\NotBlank |
||
14 | */ |
||
15 | private $user; |
||
16 | |||
17 | private $summary; |
||
18 | |||
19 | private $description; |
||
20 | |||
21 | private $location; |
||
22 | |||
23 | /** |
||
24 | * @var Assert\NotBlank |
||
25 | */ |
||
26 | private $start; |
||
27 | |||
28 | /** |
||
29 | * @var Assert\NotBlank |
||
30 | */ |
||
31 | private $end; |
||
32 | |||
33 | private $googleEventId; |
||
34 | |||
35 | public function __construct(\Google_Service_Calendar_Event $event = null) |
||
47 | |||
48 | public function jsonSerialize() |
||
61 | |||
62 | /** |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function getSummary() |
||
69 | |||
70 | /** |
||
71 | * @param mixed $summary |
||
72 | */ |
||
73 | public function setSummary($summary) |
||
77 | |||
78 | /** |
||
79 | * @return mixed |
||
80 | */ |
||
81 | public function getDescription() |
||
85 | |||
86 | /** |
||
87 | * @param mixed $description |
||
88 | */ |
||
89 | public function setDescription($description) |
||
93 | |||
94 | /** |
||
95 | * @return mixed |
||
96 | */ |
||
97 | public function getLocation() |
||
101 | |||
102 | /** |
||
103 | * @param mixed $location |
||
104 | */ |
||
105 | public function setLocation($location) |
||
109 | |||
110 | /** |
||
111 | * @return mixed |
||
112 | */ |
||
113 | public function getStart() |
||
117 | |||
118 | /** |
||
119 | * @param mixed $start |
||
120 | */ |
||
121 | public function setStart($start) |
||
125 | |||
126 | /** |
||
127 | * @return mixed |
||
128 | */ |
||
129 | public function getEnd() |
||
133 | |||
134 | /** |
||
135 | * @param mixed $end |
||
136 | */ |
||
137 | public function setEnd($end) |
||
141 | |||
142 | /** |
||
143 | * @return User |
||
144 | */ |
||
145 | public function getUser() |
||
149 | |||
150 | /** |
||
151 | * @param User $user |
||
152 | * |
||
153 | * @return $this |
||
154 | */ |
||
155 | public function setUser($user) |
||
161 | |||
162 | /** |
||
163 | * @return mixed |
||
164 | */ |
||
165 | public function getGoogleEventId() |
||
169 | |||
170 | /** |
||
171 | * @param mixed $googleEventId |
||
172 | * |
||
173 | * @return $this |
||
174 | */ |
||
175 | public function setGoogleEventId($googleEventId) |
||
181 | } |
||
182 |