@@ -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 ) { |
@@ -56,6 +56,10 @@ |
||
| 56 | 56 | * |
| 57 | 57 | *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ |
| 58 | 58 | */ |
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * @param string $path |
|
| 62 | + */ |
|
| 59 | 63 | private function fetch( $path ) { |
| 60 | 64 | |
| 61 | 65 | $this->events = include( $path ); |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | /** |
| 101 | 101 | * check the ghamari year is leap or not |
| 102 | 102 | * @since Oct, 24 2015 |
| 103 | - * @return boolean |
|
| 103 | + * @return integer|null |
|
| 104 | 104 | */ |
| 105 | 105 | public function ghamariLeapYear() { |
| 106 | 106 | |
@@ -341,6 +341,10 @@ |
||
| 341 | 341 | return $file; |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | + /** |
|
| 345 | + * @param string $class |
|
| 346 | + * @param string $ext |
|
| 347 | + */ |
|
| 344 | 348 | private function findFileWithExtension($class, $ext) |
| 345 | 349 | { |
| 346 | 350 | // PSR-4 lookup |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * Get current datetime |
| 145 | 145 | * @since Aug 17 2015 |
| 146 | - * @return object |
|
| 146 | + * @return Datium |
|
| 147 | 147 | */ |
| 148 | 148 | public static function now() { |
| 149 | 149 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | * @param $hour integer |
| 162 | 162 | * @param $minute integer |
| 163 | 163 | * @param $second integer |
| 164 | - * @return object |
|
| 164 | + * @return Datium |
|
| 165 | 165 | */ |
| 166 | 166 | public static function create( $year = 2000, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0 ) { |
| 167 | 167 | |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | /** |
| 231 | 231 | * Add new date value to current date |
| 232 | 232 | * @param $value string |
| 233 | - * @return object |
|
| 233 | + * @return Datium |
|
| 234 | 234 | */ |
| 235 | 235 | public function add( $value ) { |
| 236 | 236 | |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | /** |
| 248 | 248 | * Sub date from current date |
| 249 | 249 | * @param $value |
| 250 | - * @return obejct |
|
| 250 | + * @return Datium |
|
| 251 | 251 | */ |
| 252 | 252 | public function sub( $value ) { |
| 253 | 253 | |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | |
| 264 | 264 | /** |
| 265 | 265 | * Check if current year is leap or not |
| 266 | - * @return boolean |
|
| 266 | + * @return Leap |
|
| 267 | 267 | */ |
| 268 | 268 | public function leap( $type = 'gregorian') { |
| 269 | 269 | |