/** * Checks whether the coupon's start date is valid * * @return bool */ protected function isStartDateValid() { $now = new \DateTime(); $couponStartDate = $this->coupon->getValidFrom(); if ($couponStartDate instanceof \DateTime) { return $now >= $couponStartDate; } return true; }