title = $title; } /** * {@inheritdoc} */ public function getSubject() { if (!$this->title) { throw new LogicException('You must set an title before calling getSubject'); } return $this->app->trans("Reminder : validate '%title%'", ['%title%' => $this->title]); } /** * {@inheritdoc} */ public function getMessage() { return $this->app->trans('Il ne vous reste plus que %quantity% jours pour terminer votre validation', [ '%quantity%' => $this->app['conf']->get(['registry', 'actions', 'validation-reminder-days']) ]); } /** * {@inheritdoc} */ public function getButtonText() { return $this->app->trans('Start validation'); } /** * {@inheritdoc} */ public function getButtonURL() { return $this->url; } }