Completed
Pull Request — master (#53)
by BENOIT
03:33
created
src/Period.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
     /**
632 632
      * Returns a new Period object with a new included starting date point.
633 633
      *
634
-     * @param DateTimeInterface|string $startDate date point
634
+     * @param DateTimeImmutable $startDate date point
635 635
      *
636 636
      * @return static
637 637
      */
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
     /**
644 644
      * Returns a new Period object with a new ending date point.
645 645
      *
646
-     * @param DateTimeInterface|string $endDate date point
646
+     * @param DateTimeImmutable $endDate date point
647 647
      *
648 648
      * @return static
649 649
      */
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
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
      */
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
      * @param DateInterval|int|string $interval The interval
890 890
      * @param bool                    $backwards Optionnal - iterates counterwise
891 891
      *
892
-     * @return Generator|Period[]
892
+     * @return Generator
893 893
      */
894 894
     public function split($interval, $backwards = false)
895 895
     {
@@ -962,7 +962,7 @@  discard block
 block discarded – undo
962 962
      *
963 963
      * @param Period $period
964 964
      *
965
-     * @return float
965
+     * @return integer
966 966
      */
967 967
     public function timestampIntervalDiff(Period $period)
968 968
     {
@@ -1023,8 +1023,8 @@  discard block
 block discarded – undo
1023 1023
      * The datepoints will be used as to allow the creation of
1024 1024
      * a Period object
1025 1025
      *
1026
-     * @param DateTimeInterface|string $datePoint1 datepoint
1027
-     * @param DateTimeInterface|string $datePoint2 datepoint
1026
+     * @param DateTimeImmutable $datePoint1 datepoint
1027
+     * @param DateTimeImmutable $datePoint2 datepoint
1028 1028
      *
1029 1029
      * @return Period
1030 1030
      */
Please login to merge, or discard this patch.