/** * @return boolean */ private function isRecurrenceMonth() { if ($this->plannedTask->isPrimaryKeyEmpty()) { return false; } $lastSendDate = $this->plannedTask->getParams(); if (is_null($lastSendDate) || $lastSendDate == '') { return true; } $dateTime = new Gpf_DateTime(); if (Gpf_Common_DateUtils::getDifference($lastSendDate, $dateTime->toDateTime(), Gpf_Common_DateUtils::MONTH) > $this->accountSettings->get(Pap_Settings::NOTIFICATION_PAY_DAY_REMINDER_RECURRENCE_MONTH)) { return true; } return false; }