@@ -64,6 +64,10 @@ |
||
64 | 64 | * |
65 | 65 | *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ |
66 | 66 | */ |
67 | + |
|
68 | + /** |
|
69 | + * @param \DateTime $date_time |
|
70 | + */ |
|
67 | 71 | public function __construct( $date_time = null ) |
68 | 72 | { |
69 | 73 |
@@ -58,6 +58,10 @@ |
||
58 | 58 | * |
59 | 59 | *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ |
60 | 60 | */ |
61 | + |
|
62 | + /** |
|
63 | + * @param string $path |
|
64 | + */ |
|
61 | 65 | private function fetch( $path ) |
62 | 66 | { |
63 | 67 |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * Get current datetime |
179 | 179 | * |
180 | 180 | * @since Aug 17 2015 |
181 | - * @return object |
|
181 | + * @return Datium |
|
182 | 182 | */ |
183 | 183 | public static function now() |
184 | 184 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | * @param integer $minute minute number |
200 | 200 | * @param integer $second second number |
201 | 201 | * |
202 | - * @return object |
|
202 | + * @return Datium |
|
203 | 203 | */ |
204 | 204 | public static function create( |
205 | 205 | $year = 2000, |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | * @param object $date_start Start of the DateTime |
241 | 241 | * @param object $date_end End of the DateTime |
242 | 242 | * |
243 | - * @return object |
|
243 | + * @return Datium |
|
244 | 244 | */ |
245 | 245 | public static function between($date_start, $date_end) |
246 | 246 | { |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | * |
287 | 287 | * @param object $calendar Assigned calendar to when calendar should start. |
288 | 288 | * |
289 | - * @return object |
|
289 | + * @return Datium |
|
290 | 290 | */ |
291 | 291 | public function to($calendar) |
292 | 292 | { |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | * |
328 | 328 | * @param string $value How much date should be added to current date |
329 | 329 | * |
330 | - * @return object |
|
330 | + * @return Datium |
|
331 | 331 | */ |
332 | 332 | public function add($value) |
333 | 333 | { |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | * |
358 | 358 | * @param string $value How much date should increase from current date |
359 | 359 | * |
360 | - * @return obejct |
|
360 | + * @return Datium |
|
361 | 361 | */ |
362 | 362 | public function sub($value) |
363 | 363 | { |
@@ -385,9 +385,8 @@ discard block |
||
385 | 385 | /** |
386 | 386 | * Check if current year is leap or not |
387 | 387 | * |
388 | - * @param string $type Name of the calendar to caculate leap year |
|
389 | 388 | * |
390 | - * @return boolean |
|
389 | + * @return Leap |
|
391 | 390 | */ |
392 | 391 | public function leap() |
393 | 392 | { |
@@ -403,7 +402,7 @@ discard block |
||
403 | 402 | * |
404 | 403 | * @since Aug, 22 2015 |
405 | 404 | * |
406 | - * @return integer |
|
405 | + * @return DayOf |
|
407 | 406 | */ |
408 | 407 | public function dayOf() |
409 | 408 | { |
@@ -450,7 +449,7 @@ discard block |
||
450 | 449 | * |
451 | 450 | * @param string $language language short name fa, en, ar ... |
452 | 451 | * |
453 | - * @return object |
|
452 | + * @return Datium |
|
454 | 453 | */ |
455 | 454 | public function lang($language = 'fa') |
456 | 455 | { |