Completed
Pull Request — master (#32)
by James
14:54
created
src/Period.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     /**
393 393
      * Returns the Period duration as expressed in seconds
394 394
      *
395
-     * @return float
395
+     * @return integer
396 396
      */
397 397
     public function getTimestampInterval()
398 398
     {
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
      * Tells whether the specified index is fully contained within
510 510
      * the current Period object.
511 511
      *
512
-     * @param Period|DateTimeInterface|string $index
512
+     * @param DateTimeImmutable $index
513 513
      *
514 514
      * @return bool
515 515
      */
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
     /**
618 618
      * Returns a new Period object with a new included starting date point.
619 619
      *
620
-     * @param DateTimeInterface|string $startDate date point
620
+     * @param DateTimeImmutable $startDate date point
621 621
      *
622 622
      * @return static
623 623
      */
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
     /**
630 630
      * Returns a new Period object with a new ending date point.
631 631
      *
632
-     * @param DateTimeInterface|string $endDate date point
632
+     * @param DateTimeImmutable $endDate date point
633 633
      *
634 634
      * @return static
635 635
      */
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
      * <li>a string in a format supported by DateInterval::createFromDateString</li>
649 649
      * </ul>
650 650
      *
651
-     * @param DateInterval|int|string $interval The interval
651
+     * @param DateInterval $interval The interval
652 652
      *
653 653
      * @return static
654 654
      */
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
      *
845 845
      * @param Period $period
846 846
      *
847
-     * @return float
847
+     * @return integer
848 848
      */
849 849
     public function timestampIntervalDiff(Period $period)
850 850
     {
@@ -903,8 +903,8 @@  discard block
 block discarded – undo
903 903
      * The datepoints will be used as to allow the creation of
904 904
      * a Period object
905 905
      *
906
-     * @param DateTimeInterface|string $datePoint1 datepoint
907
-     * @param DateTimeInterface|string $datePoint2 datepoint
906
+     * @param DateTimeImmutable $datePoint1 datepoint
907
+     * @param DateTimeImmutable $datePoint2 datepoint
908 908
      *
909 909
      * @return Period
910 910
      */
Please login to merge, or discard this patch.