@@ -63,6 +63,10 @@ |
||
| 63 | 63 | * |
| 64 | 64 | *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ |
| 65 | 65 | */ |
| 66 | + |
|
| 67 | + /** |
|
| 68 | + * @param \DateTime $date_time |
|
| 69 | + */ |
|
| 66 | 70 | public function __construct( $date_time = NULL ) { |
| 67 | 71 | |
| 68 | 72 | if ( $date_time !== NULL ) { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * Get current datetime |
| 140 | 140 | * @since Aug 17 2015 |
| 141 | - * @return object |
|
| 141 | + * @return Datium |
|
| 142 | 142 | */ |
| 143 | 143 | public static function now() { |
| 144 | 144 | |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * @param $hour integer |
| 157 | 157 | * @param $minute integer |
| 158 | 158 | * @param $second integer |
| 159 | - * @return object |
|
| 159 | + * @return Datium |
|
| 160 | 160 | */ |
| 161 | 161 | public static function create( $year = 2000, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0 ) { |
| 162 | 162 | |
@@ -195,6 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | 197 | * Convert from current calendar, what type is current calendar? |
| 198 | + * @param string $calendar |
|
| 198 | 199 | */ |
| 199 | 200 | public function from( $calendar ) { |
| 200 | 201 | |
@@ -213,6 +214,9 @@ discard block |
||
| 213 | 214 | |
| 214 | 215 | } |
| 215 | 216 | |
| 217 | + /** |
|
| 218 | + * @param string $calendar |
|
| 219 | + */ |
|
| 216 | 220 | public function to( $calendar ) { |
| 217 | 221 | |
| 218 | 222 | $this->convert = new Convert( $this->date_time ); |
@@ -245,7 +249,7 @@ discard block |
||
| 245 | 249 | /** |
| 246 | 250 | * Add new date value to current date |
| 247 | 251 | * @param $value string |
| 248 | - * @return object |
|
| 252 | + * @return Datium |
|
| 249 | 253 | */ |
| 250 | 254 | public function add( $value ) { |
| 251 | 255 | |
@@ -262,7 +266,7 @@ discard block |
||
| 262 | 266 | /** |
| 263 | 267 | * Sub date from current date |
| 264 | 268 | * @param $value |
| 265 | - * @return obejct |
|
| 269 | + * @return Datium |
|
| 266 | 270 | */ |
| 267 | 271 | public function sub( $value ) { |
| 268 | 272 | |
@@ -278,7 +282,7 @@ discard block |
||
| 278 | 282 | |
| 279 | 283 | /** |
| 280 | 284 | * Check if current year is leap or not |
| 281 | - * @return boolean |
|
| 285 | + * @return Leap |
|
| 282 | 286 | */ |
| 283 | 287 | public function leap( $type = 'gregorian') { |
| 284 | 288 | |