@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * Get current datetime |
185 | 185 | * |
186 | 186 | * @since Aug 17 2015 |
187 | - * @return object |
|
187 | + * @return Datium |
|
188 | 188 | */ |
189 | 189 | public static function now() |
190 | 190 | { |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * @param integer $minute minute number |
206 | 206 | * @param integer $second second number |
207 | 207 | * |
208 | - * @return object |
|
208 | + * @return Datium |
|
209 | 209 | */ |
210 | 210 | public static function create( |
211 | 211 | $year = 2000, |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * @param object $date_start Start of the DateTime |
248 | 248 | * @param object $date_end End of the DateTime |
249 | 249 | * |
250 | - * @return object |
|
250 | + * @return Datium |
|
251 | 251 | */ |
252 | 252 | public static function between($date_start, $date_end) |
253 | 253 | { |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | * |
294 | 294 | * @param object $calendar Assigned calendar to when calendar should start. |
295 | 295 | * |
296 | - * @return object |
|
296 | + * @return Datium |
|
297 | 297 | */ |
298 | 298 | public function to($calendar) |
299 | 299 | { |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | * |
348 | 348 | * @param string $value How much date should be added to current date |
349 | 349 | * |
350 | - * @return object |
|
350 | + * @return Datium |
|
351 | 351 | */ |
352 | 352 | public function add($value) |
353 | 353 | { |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | * |
390 | 390 | * @param string $value How much date should increase from current date |
391 | 391 | * |
392 | - * @return obejct |
|
392 | + * @return Datium |
|
393 | 393 | */ |
394 | 394 | public function sub($value) |
395 | 395 | { |
@@ -429,9 +429,8 @@ discard block |
||
429 | 429 | /** |
430 | 430 | * Check if current year is leap or not |
431 | 431 | * |
432 | - * @param string $type Name of the calendar to caculate leap year |
|
433 | 432 | * |
434 | - * @return boolean |
|
433 | + * @return Leap |
|
435 | 434 | */ |
436 | 435 | public function leap() |
437 | 436 | { |
@@ -445,7 +444,7 @@ discard block |
||
445 | 444 | /** |
446 | 445 | * Calculate how many time ago datetime happens |
447 | 446 | * |
448 | - * @return string |
|
447 | + * @return TimeAgo |
|
449 | 448 | */ |
450 | 449 | public function ago() |
451 | 450 | { |
@@ -461,7 +460,7 @@ discard block |
||
461 | 460 | * |
462 | 461 | * @since Aug, 22 2015 |
463 | 462 | * |
464 | - * @return integer |
|
463 | + * @return DayOf |
|
465 | 464 | */ |
466 | 465 | public function dayOf() |
467 | 466 | { |
@@ -494,7 +493,7 @@ discard block |
||
494 | 493 | * |
495 | 494 | * @since Oct 22, 2015 |
496 | 495 | * |
497 | - * @return object |
|
496 | + * @return DateTime |
|
498 | 497 | */ |
499 | 498 | public function object() |
500 | 499 | { |
@@ -508,7 +507,7 @@ discard block |
||
508 | 507 | * |
509 | 508 | * @param string $language language short name fa, en, ar ... |
510 | 509 | * |
511 | - * @return object |
|
510 | + * @return Datium |
|
512 | 511 | */ |
513 | 512 | public function lang($language = 'fa') |
514 | 513 | { |
@@ -528,7 +527,7 @@ discard block |
||
528 | 527 | /** |
529 | 528 | * Return object as timestamp |
530 | 529 | * |
531 | - * @return timestamp |
|
530 | + * @return integer |
|
532 | 531 | */ |
533 | 532 | public function timestamp() |
534 | 533 | { |
@@ -63,8 +63,8 @@ |
||
63 | 63 | /** |
64 | 64 | * Read ago config file |
65 | 65 | * |
66 | - * @param integer $date date index in ago config file |
|
67 | 66 | * @param string $type duration type on ago config file |
67 | + * @param integer $value |
|
68 | 68 | */ |
69 | 69 | public function read( $value, $type ) |
70 | 70 | { |