@@ -41,16 +41,25 @@ discard block |
||
41 | 41 | return $this->seconds; |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param integer $hours |
|
46 | + */ |
|
44 | 47 | public function setHours($hours) |
45 | 48 | { |
46 | 49 | $this->setAttribute('hours', $hours, self::$hours_max); |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param integer $minutes |
|
54 | + */ |
|
49 | 55 | public function setMinutes($minutes) |
50 | 56 | { |
51 | 57 | $this->setAttribute('minutes', $minutes, self::$minutes_max); |
52 | 58 | } |
53 | 59 | |
60 | + /** |
|
61 | + * @param integer $seconds |
|
62 | + */ |
|
54 | 63 | public function setSeconds($seconds) |
55 | 64 | { |
56 | 65 | $this->setAttribute('seconds', $seconds, self::$seconds_max); |
@@ -85,6 +94,10 @@ discard block |
||
85 | 94 | |
86 | 95 | // Private Functions |
87 | 96 | |
97 | + /** |
|
98 | + * @param string $name |
|
99 | + * @param integer $max |
|
100 | + */ |
|
88 | 101 | private function setAttribute($name, $value, $max) |
89 | 102 | { |
90 | 103 | if (is_numeric($value)) { |
@@ -52,6 +52,9 @@ |
||
52 | 52 | return array($params, $title); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param integer $date |
|
57 | + */ |
|
55 | 58 | public function getLinkParams($date) |
56 | 59 | { |
57 | 60 | return array( |
@@ -170,6 +170,9 @@ |
||
170 | 170 | return $date; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param integer $day |
|
175 | + */ |
|
173 | 176 | private function removeDay($day) |
174 | 177 | { |
175 | 178 | if (! in_array($day, $this->daysRemoved)) { |
@@ -64,6 +64,9 @@ discard block |
||
64 | 64 | return array($params, $title); |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param integer $date |
|
69 | + */ |
|
67 | 70 | public function getLinkParams($date) |
68 | 71 | { |
69 | 72 | return array( |
@@ -194,6 +197,9 @@ discard block |
||
194 | 197 | |
195 | 198 | // Private Functions |
196 | 199 | |
200 | + /** |
|
201 | + * @param integer $month |
|
202 | + */ |
|
197 | 203 | private function removeMonth($month) |
198 | 204 | { |
199 | 205 | if (! in_array($month, $this->monthsRemoved)) { |
@@ -52,6 +52,9 @@ |
||
52 | 52 | return array($params, $title); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param integer $date |
|
57 | + */ |
|
55 | 58 | public function getLinkParams($date) |
56 | 59 | { |
57 | 60 | return array( |
@@ -170,6 +170,9 @@ |
||
170 | 170 | return $date; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param integer $day |
|
175 | + */ |
|
173 | 176 | private function removeDay($day) |
174 | 177 | { |
175 | 178 | if (! in_array($day, $this->daysRemoved)) { |