public function __construct(DateTime $lower = null, DateTime $upper = null, $lowerInclusive = true, $upperInclusive = false) { if (null !== $lower && null !== $upper && $lower > $upper) { throw new InvalidArgumentException("Range lower bound must be less than or equal to range upper bound"); } parent::__construct($lower, $upper, $lowerInclusive, $upperInclusive); }