/** * @param Todo $todo * @param TodoReminder $reminder * @return bool */ private function reminderShouldBeProcessed(Todo $todo, TodoReminder $reminder) { // drop command, wrong reminder if (!$todo->reminder()->equals($reminder)) { return false; } // drop command, reminder is closed if (!$reminder->isOpen()) { return false; } // drop command, reminder is in future if ($reminder->isInTheFuture()) { return false; } return true; }