@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | /** |
| 407 | 407 | * Returns the Period duration as expressed in seconds |
| 408 | 408 | * |
| 409 | - * @return float |
|
| 409 | + * @return integer |
|
| 410 | 410 | */ |
| 411 | 411 | public function getTimestampInterval() |
| 412 | 412 | { |
@@ -523,7 +523,7 @@ discard block |
||
| 523 | 523 | * Tells whether the specified index is fully contained within |
| 524 | 524 | * the current Period object. |
| 525 | 525 | * |
| 526 | - * @param Period|DateTimeInterface|string $index |
|
| 526 | + * @param DateTimeImmutable $index |
|
| 527 | 527 | * |
| 528 | 528 | * @return bool |
| 529 | 529 | */ |
@@ -662,7 +662,7 @@ discard block |
||
| 662 | 662 | * <li>a string in a format supported by DateInterval::createFromDateString</li> |
| 663 | 663 | * </ul> |
| 664 | 664 | * |
| 665 | - * @param DateInterval|int|string $interval The interval |
|
| 665 | + * @param DateInterval $interval The interval |
|
| 666 | 666 | * |
| 667 | 667 | * @return static |
| 668 | 668 | */ |
@@ -858,7 +858,7 @@ discard block |
||
| 858 | 858 | * |
| 859 | 859 | * @param Period $period |
| 860 | 860 | * |
| 861 | - * @return float |
|
| 861 | + * @return integer |
|
| 862 | 862 | */ |
| 863 | 863 | public function timestampIntervalDiff(Period $period) |
| 864 | 864 | { |
@@ -943,8 +943,8 @@ discard block |
||
| 943 | 943 | * The datepoints will be used as to allow the creation of |
| 944 | 944 | * a Period object |
| 945 | 945 | * |
| 946 | - * @param DateTimeInterface|string $datePoint1 datepoint |
|
| 947 | - * @param DateTimeInterface|string $datePoint2 datepoint |
|
| 946 | + * @param DateTimeImmutable $datePoint1 datepoint |
|
| 947 | + * @param DateTimeImmutable $datePoint2 datepoint |
|
| 948 | 948 | * |
| 949 | 949 | * @return Period |
| 950 | 950 | */ |