| @@ -35,6 +35,10 @@ discard block | ||
| 35 | 35 | /** @var int */ | 
| 36 | 36 | private $precisionMask; | 
| 37 | 37 | |
| 38 | + /** | |
| 39 | + * @param integer $precisionMask | |
| 40 | + * @param integer $boundaryExclusionMask | |
| 41 | + */ | |
| 38 | 42 | public function __construct( | 
| 39 | 43 | DateTimeImmutable $start, | 
| 40 | 44 | ?DateTimeImmutable $end, | 
| @@ -323,6 +327,7 @@ discard block | ||
| 323 | 327 | |
| 324 | 328 | /** | 
| 325 | 329 | * @param \Spatie\Period\Period ...$periods | 
| 330 | + * @param Period[] $periods | |
| 326 | 331 | * | 
| 327 | 332 | * @return \Spatie\Period\PeriodCollection|static[] | 
| 328 | 333 | */ | 
| @@ -345,8 +350,9 @@ discard block | ||
| 345 | 350 | |
| 346 | 351 | /** | 
| 347 | 352 | * @param \Spatie\Period\Period ...$periods | 
| 353 | + * @param Period[] $periods | |
| 348 | 354 | * | 
| 349 | - * @return static | |
| 355 | + * @return Period | |
| 350 | 356 | */ | 
| 351 | 357 | public function overlapAll(PeriodInterface ...$periods): Period | 
| 352 | 358 |      { | 
| @@ -407,6 +413,7 @@ discard block | ||
| 407 | 413 | |
| 408 | 414 | /** | 
| 409 | 415 | * @param \Spatie\Period\Period ...$periods | 
| 416 | + * @param Period[] $periods | |
| 410 | 417 | * | 
| 411 | 418 | * @return \Spatie\Period\PeriodCollection|static[] | 
| 412 | 419 | */ | 
| @@ -449,6 +456,9 @@ discard block | ||
| 449 | 456 | ); | 
| 450 | 457 | } | 
| 451 | 458 | |
| 459 | + /** | |
| 460 | + * @param string|null $format | |
| 461 | + */ | |
| 452 | 462 | protected static function resolveDate($date, ?string $format): DateTimeImmutable | 
| 453 | 463 |      { | 
| 454 | 464 |          if ($date instanceof DateTimeImmutable) { | 
| @@ -2,15 +2,15 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Period; | 
| 4 | 4 | |
| 5 | -use DateTime; | |
| 6 | -use DatePeriod; | |
| 7 | 5 | use DateInterval; | 
| 6 | +use DatePeriod; | |
| 7 | +use DateTime; | |
| 8 | 8 | use DateTimeImmutable; | 
| 9 | 9 | use DateTimeInterface; | 
| 10 | 10 | use IteratorAggregate; | 
| 11 | +use Spatie\Period\Exceptions\CannotComparePeriods; | |
| 11 | 12 | use Spatie\Period\Exceptions\InvalidDate; | 
| 12 | 13 | use Spatie\Period\Exceptions\InvalidPeriod; | 
| 13 | -use Spatie\Period\Exceptions\CannotComparePeriods; | |
| 14 | 14 | |
| 15 | 15 | class EndlessPeriod implements IteratorAggregate, PeriodInterface | 
| 16 | 16 |  { | 
| @@ -2,15 +2,15 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Period; | 
| 4 | 4 | |
| 5 | -use DateTime; | |
| 6 | -use DatePeriod; | |
| 7 | 5 | use DateInterval; | 
| 6 | +use DatePeriod; | |
| 7 | +use DateTime; | |
| 8 | 8 | use DateTimeImmutable; | 
| 9 | 9 | use DateTimeInterface; | 
| 10 | 10 | use IteratorAggregate; | 
| 11 | +use Spatie\Period\Exceptions\CannotComparePeriods; | |
| 11 | 12 | use Spatie\Period\Exceptions\InvalidDate; | 
| 12 | 13 | use Spatie\Period\Exceptions\InvalidPeriod; | 
| 13 | -use Spatie\Period\Exceptions\CannotComparePeriods; | |
| 14 | 14 | |
| 15 | 15 | class Period implements IteratorAggregate, PeriodInterface | 
| 16 | 16 |  { |