|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This is part of the webuni/srazy-api-client. |
|
5
|
|
|
* |
|
6
|
|
|
* (c) Martin Hasoň <[email protected]> |
|
7
|
|
|
* (c) Webuni s.r.o. <[email protected]> |
|
8
|
|
|
* |
|
9
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
10
|
|
|
* file that was distributed with this source code. |
|
11
|
|
|
*/ |
|
12
|
|
|
|
|
13
|
|
|
namespace Webuni\Srazy\Model; |
|
14
|
|
|
|
|
15
|
|
|
class Session |
|
16
|
|
|
{ |
|
17
|
|
|
const TYPE_REGISTRATION = 'registration'; |
|
18
|
|
|
const TYPE_START = 'start'; |
|
19
|
|
|
const TYPE_TALK = 'talk'; |
|
20
|
|
|
const TYPE_BREAK = 'break'; |
|
21
|
|
|
const TYPE_LUNCH = 'lunch'; |
|
22
|
|
|
const TYPE_COFFEE = 'caffee'; |
|
23
|
|
|
const TYPE_BEAR = 'bear'; |
|
24
|
|
|
const TYPE_NETWORKING = 'networking'; |
|
25
|
|
|
const TYPE_END = 'end'; |
|
26
|
|
|
const TYPE_OTHER = 'other'; |
|
27
|
|
|
|
|
28
|
|
|
private $title; |
|
29
|
|
|
|
|
30
|
|
|
private $speaker; |
|
31
|
|
|
|
|
32
|
|
|
private $description; |
|
33
|
|
|
|
|
34
|
|
|
private $type; |
|
35
|
|
|
|
|
36
|
|
|
private $start; |
|
37
|
|
|
|
|
38
|
|
|
private $stop; |
|
39
|
|
|
|
|
40
|
|
|
private $event; |
|
41
|
|
|
|
|
42
|
|
|
public function getTitle() |
|
43
|
|
|
{ |
|
44
|
|
|
return $this->title; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
public function setTitle($title) |
|
48
|
|
|
{ |
|
49
|
|
|
$this->title = $title; |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
public function getSpeaker() |
|
53
|
|
|
{ |
|
54
|
|
|
return $this->speaker; |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
public function setSpeaker($speaker) |
|
58
|
|
|
{ |
|
59
|
|
|
$this->speaker = $speaker; |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
public function getDescription() |
|
63
|
|
|
{ |
|
64
|
|
|
return $this->description; |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
|
|
public function setDescription($description) |
|
68
|
|
|
{ |
|
69
|
|
|
$this->description = $description; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
public function getType() |
|
73
|
|
|
{ |
|
74
|
|
|
return $this->type; |
|
75
|
|
|
} |
|
76
|
|
|
|
|
77
|
|
|
public function setType($type) |
|
78
|
|
|
{ |
|
79
|
|
|
$this->type = $type; |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
public function getStart() |
|
83
|
|
|
{ |
|
84
|
|
|
return $this->start; |
|
85
|
|
|
} |
|
86
|
|
|
|
|
87
|
|
|
public function setStart(\DateTime $start = null) |
|
88
|
|
|
{ |
|
89
|
|
|
$this->start = $start; |
|
90
|
|
|
} |
|
91
|
|
|
|
|
92
|
|
|
public function getStop() |
|
93
|
|
|
{ |
|
94
|
|
|
return $this->stop; |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
public function setStop(\DateTime $stop = null) |
|
98
|
|
|
{ |
|
99
|
|
|
$this->stop = $stop; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
public function getEvent() |
|
103
|
|
|
{ |
|
104
|
|
|
return $this->event; |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
|
|
public function setEvent($event) |
|
108
|
|
|
{ |
|
109
|
|
|
$this->event = $event; |
|
110
|
|
|
} |
|
111
|
|
|
|
|
112
|
|
|
public function isType($type) |
|
113
|
|
|
{ |
|
114
|
|
|
return $this->type === $type; |
|
115
|
|
|
} |
|
116
|
|
|
} |
|
117
|
|
|
|