1 | <?php |
||
21 | class Event extends AbstractEvent |
||
22 | { |
||
23 | /** |
||
24 | * @var \DateTime |
||
25 | */ |
||
26 | protected $begin; |
||
27 | |||
28 | /** |
||
29 | * @var \DateTime |
||
30 | */ |
||
31 | protected $end; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $uid; |
||
37 | |||
38 | public function __construct($uid, \DateTime $start, \DateTime $end) |
||
48 | |||
49 | /** |
||
50 | * Returns an unique identifier for the Event. |
||
51 | * Could be any string, but MUST to be unique. |
||
52 | * ex : 'event-8', 'meeting-43'. |
||
53 | * |
||
54 | * @return string an unique event identifier |
||
55 | */ |
||
56 | public function getUid() |
||
60 | |||
61 | /** |
||
62 | * Returns the event begin. |
||
63 | * |
||
64 | * @return \DateTime event begin |
||
65 | */ |
||
66 | public function getBegin() |
||
70 | |||
71 | /** |
||
72 | * Returns the event end. |
||
73 | * |
||
74 | * @return \DateTime event end |
||
75 | */ |
||
76 | public function getEnd() |
||
80 | } |
||
81 |