@@ -91,6 +91,9 @@ discard block |
||
91 | 91 | $this->second = $second; |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @return string |
|
96 | + */ |
|
94 | 97 | public function getMonthName() { |
95 | 98 | return self::$monthNames[(int) $this->month]; |
96 | 99 | } |
@@ -270,7 +273,7 @@ discard block |
||
270 | 273 | * Retorna a diferença em Segundos entre duas datas |
271 | 274 | * @param Date $date1 |
272 | 275 | * @param Date $date2 |
273 | - * @return float Diferença em Segundos |
|
276 | + * @return integer Diferença em Segundos |
|
274 | 277 | */ |
275 | 278 | public static function diffSeconds(Date $date1, Date $date2) { |
276 | 279 | $mkTime1 = mktime($date1->getHour(), $date1->getMinute(), $date1->getSecond(), $date1->getMonth(), $date1->getDay(), $date1->getYear()); |
@@ -284,7 +287,7 @@ discard block |
||
284 | 287 | * Retorna a diferença em Dias entre duas datas |
285 | 288 | * @param Date $date1 |
286 | 289 | * @param Date $date2 |
287 | - * @return float Diferença em Dias |
|
290 | + * @return integer Diferença em Dias |
|
288 | 291 | */ |
289 | 292 | public static function diffDays(Date $date1, Date $date2) { |
290 | 293 | $diffInDay = ((self::diffSeconds($date1, $date2)) / 86400); |
@@ -66,6 +66,9 @@ discard block |
||
66 | 66 | $this->name = $name; |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param string $tempName |
|
71 | + */ |
|
69 | 72 | public function setTempName($tempName) { |
70 | 73 | $this->tempName = $tempName; |
71 | 74 | } |
@@ -237,7 +240,6 @@ discard block |
||
237 | 240 | |
238 | 241 | /** |
239 | 242 | * Retorna o conteudo do arquivo |
240 | - * @param string $content |
|
241 | 243 | */ |
242 | 244 | public function read() { |
243 | 245 | return file_get_contents($this->getFullName()); |