title = $title; } /** * {@inheritdoc} */ public function getSubject() { if (!$this->title) { throw new LogicException('You must set an title before calling getSubject'); } return sprintf(_("Reminder : validate '%s'"), $this->title); } /** * {@inheritdoc} */ public function getMessage() { return sprintf( _('Il ne vous reste plus que %d jours pour terminer votre validation'), $this->app['phraseanet.registry']->get('GV_validation_reminder') ); } /** * {@inheritdoc} */ public function getButtonText() { return _('Validate'); } /** * {@inheritdoc} */ public function getButtonURL() { return $this->url; } }