@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php namespace Datium; |
| 2 | 2 | |
| 3 | 3 | use Datium\Tools\Convert; |
| 4 | -use Datium\Tools\DayOf; |
|
| 5 | 4 | use DateTime; |
| 6 | 5 | use DateInterval; |
| 7 | 6 | use DatePeriod; |
@@ -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 | |
@@ -1,7 +1,5 @@ |
||
| 1 | 1 | ``<?php |
| 2 | 2 | |
| 3 | - use OpenCafe\Datium as Datium; |
|
| 4 | - |
|
| 5 | 3 | return array ( |
| 6 | 4 | |
| 7 | 5 | 'numbers' => array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'), |
@@ -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 | |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use OpenCafe\Tools\Leap; |
| 19 | 19 | use OpenCafe\Tools\DayOf; |
| 20 | 20 | use OpenCafe\Tools\Lang; |
| 21 | - |
|
| 22 | 21 | use OpenCafe\Datium; |
| 23 | 22 | |
| 24 | 23 | /** |
@@ -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, |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * @param object $date_start Start of the DateTime |
| 242 | 242 | * @param object $date_end End of the DateTime |
| 243 | 243 | * |
| 244 | - * @return object |
|
| 244 | + * @return Datium |
|
| 245 | 245 | */ |
| 246 | 246 | public static function between($date_start, $date_end) |
| 247 | 247 | { |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | * |
| 288 | 288 | * @param object $calendar Assigned calendar to when calendar should start. |
| 289 | 289 | * |
| 290 | - * @return object |
|
| 290 | + * @return Datium |
|
| 291 | 291 | */ |
| 292 | 292 | public function to($calendar) |
| 293 | 293 | { |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | * |
| 329 | 329 | * @param string $value How much date should be added to current date |
| 330 | 330 | * |
| 331 | - * @return object |
|
| 331 | + * @return Datium |
|
| 332 | 332 | */ |
| 333 | 333 | public function add($value) |
| 334 | 334 | { |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | * |
| 359 | 359 | * @param string $value How much date should increase from current date |
| 360 | 360 | * |
| 361 | - * @return obejct |
|
| 361 | + * @return Datium |
|
| 362 | 362 | */ |
| 363 | 363 | public function sub($value) |
| 364 | 364 | { |
@@ -386,9 +386,8 @@ discard block |
||
| 386 | 386 | /** |
| 387 | 387 | * Check if current year is leap or not |
| 388 | 388 | * |
| 389 | - * @param string $type Name of the calendar to caculate leap year |
|
| 390 | 389 | * |
| 391 | - * @return boolean |
|
| 390 | + * @return Leap |
|
| 392 | 391 | */ |
| 393 | 392 | public function leap() |
| 394 | 393 | { |
@@ -404,7 +403,7 @@ discard block |
||
| 404 | 403 | * |
| 405 | 404 | * @since Aug, 22 2015 |
| 406 | 405 | * |
| 407 | - * @return integer |
|
| 406 | + * @return DayOf |
|
| 408 | 407 | */ |
| 409 | 408 | public function dayOf() |
| 410 | 409 | { |
@@ -451,7 +450,7 @@ discard block |
||
| 451 | 450 | * |
| 452 | 451 | * @param string $language language short name fa, en, ar ... |
| 453 | 452 | * |
| 454 | - * @return object |
|
| 453 | + * @return Datium |
|
| 455 | 454 | */ |
| 456 | 455 | public function lang($language = 'fa') |
| 457 | 456 | { |
@@ -471,7 +470,7 @@ discard block |
||
| 471 | 470 | /** |
| 472 | 471 | * Return object as timestamp |
| 473 | 472 | * |
| 474 | - * @return timestamp |
|
| 473 | + * @return integer |
|
| 475 | 474 | */ |
| 476 | 475 | public function timestamp() |
| 477 | 476 | { |