@@ -15,11 +15,11 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | class Calendar extends AbstractCalendar { |
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * @param $units |
|
| 20 | - * @param $store |
|
| 21 | - * @param $default_value |
|
| 22 | - */ |
|
| 18 | + /** |
|
| 19 | + * @param $units |
|
| 20 | + * @param $store |
|
| 21 | + * @param $default_value |
|
| 22 | + */ |
|
| 23 | 23 | public function __construct($units, $store, $default_value = 0) { |
| 24 | 24 | $this->units = $units; |
| 25 | 25 | $this->store = $store; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | /** |
| 91 | 91 | * Returns the start date. |
| 92 | 92 | * |
| 93 | - * @return DateTime |
|
| 93 | + * @return \DateTime |
|
| 94 | 94 | */ |
| 95 | 95 | public function getStartDate() { |
| 96 | 96 | return clone($this->start_date); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | /** |
| 108 | 108 | * Set the start date. |
| 109 | 109 | * |
| 110 | - * @param DateTime $start_date |
|
| 110 | + * @param \DateTime $start_date |
|
| 111 | 111 | */ |
| 112 | 112 | public function setStartDate(\DateTime $start_date) { |
| 113 | 113 | $this->start_date = clone($start_date); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * Returns the end date. |
| 118 | 118 | * |
| 119 | - * @return DateTime |
|
| 119 | + * @return \DateTime |
|
| 120 | 120 | */ |
| 121 | 121 | public function getEndDate() { |
| 122 | 122 | return clone($this->end_date); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * Set the end date. |
| 135 | 135 | * |
| 136 | - * @param DateTime $end_date |
|
| 136 | + * @param \DateTime $end_date |
|
| 137 | 137 | */ |
| 138 | 138 | public function setEndDate(\DateTime $end_date) { |
| 139 | 139 | $this->end_date = clone($end_date); |
@@ -451,6 +451,7 @@ discard block |
||
| 451 | 451 | /** |
| 452 | 452 | * Transforms the event in a breakdown of days, hours and minutes with associated states. |
| 453 | 453 | * |
| 454 | + * @param EventItemizer $itemizer |
|
| 454 | 455 | * @return array |
| 455 | 456 | */ |
| 456 | 457 | public function itemize($itemizer, $granularity = AbstractEvent::BAT_HOURLY) { |
@@ -461,7 +462,7 @@ discard block |
||
| 461 | 462 | /** |
| 462 | 463 | * Saves an event using the Store object |
| 463 | 464 | * |
| 464 | - * @param \Roomify\Bat\\Store\Store $store |
|
| 465 | + * @param Store $store |
|
| 465 | 466 | * @param string $granularity |
| 466 | 467 | * |
| 467 | 468 | * @return boolean |
@@ -32,7 +32,6 @@ |
||
| 32 | 32 | * [BAT_DAY][2016][01][d1][-1] - The first day starts at 1210 so the DAY array is not enough |
| 33 | 33 | * [BAT_DAY][2016][01][d2][10] - The second day is a full day at the same value of 10 |
| 34 | 34 | * [BAT_DAY][2016][01][d3][-1] - The last day is no a full day so the day array in non-determinant |
| 35 | - |
|
| 36 | 35 | * [BAT_HOUR][2016][01][d1][h12][-1] - The first hour of the event starts at 10 minutes so the hour is non-determinant |
| 37 | 36 | * [BAT_HOUR][2016][01][d1][h13][10] |
| 38 | 37 | * [BAT_HOUR][2016][01][d1][h14][10] |
@@ -25,6 +25,7 @@ discard block |
||
| 25 | 25 | * Set the unit id. |
| 26 | 26 | * |
| 27 | 27 | * @param int $unit_id |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function setUnitId($unit_id); |
| 30 | 31 | |
@@ -46,6 +47,7 @@ discard block |
||
| 46 | 47 | * Sets the StartDate |
| 47 | 48 | * |
| 48 | 49 | * @param \DateTime |
| 50 | + * @return void |
|
| 49 | 51 | */ |
| 50 | 52 | public function setStartDate(\DateTime $start_date); |
| 51 | 53 | |
@@ -53,6 +55,7 @@ discard block |
||
| 53 | 55 | * Sets the EndDate |
| 54 | 56 | * |
| 55 | 57 | * @param \DateTime |
| 58 | + * @return void |
|
| 56 | 59 | */ |
| 57 | 60 | public function setEndDate(\DateTime $end_date); |
| 58 | 61 | |
@@ -67,6 +70,7 @@ discard block |
||
| 67 | 70 | * Sets the event value. |
| 68 | 71 | * |
| 69 | 72 | * @param int $value |
| 73 | + * @return void |
|
| 70 | 74 | */ |
| 71 | 75 | public function setValue($value); |
| 72 | 76 | |
@@ -215,7 +219,7 @@ discard block |
||
| 215 | 219 | |
| 216 | 220 | /** |
| 217 | 221 | * Returns TRUE if the date supplied is the first month of the event |
| 218 | - * @param $date |
|
| 222 | + * @param \DateTime $date |
|
| 219 | 223 | * |
| 220 | 224 | * @return bool |
| 221 | 225 | */ |
@@ -231,7 +235,7 @@ discard block |
||
| 231 | 235 | |
| 232 | 236 | /** |
| 233 | 237 | * Returns TRUE if the date supplied is the last month of the event |
| 234 | - * @param $date |
|
| 238 | + * @param \DateTime $date |
|
| 235 | 239 | * |
| 236 | 240 | * @return bool |
| 237 | 241 | */ |
@@ -283,7 +287,6 @@ discard block |
||
| 283 | 287 | /** |
| 284 | 288 | * Returns the json version of this event. |
| 285 | 289 | * |
| 286 | - * @param \Roomify\Bat\Event\EventInterface $event |
|
| 287 | 290 | * |
| 288 | 291 | * @return mixed |
| 289 | 292 | */ |