login = $login; } /** * {@inheritdoc} */ public function getSubject() { return sprintf(_('Your account on %s'), $this->getPhraseanetTitle()); } /** * {@inheritdoc} */ public function getMessage() { if (!$this->login) { throw new LogicException('You must set a login before calling getMessage'); } return sprintf(_('Your account with the login %s as been created'), $this->login) . "\n" . _('You now have to set up your pasword'); } /** * {@inheritdoc} */ public function getButtonText() { return _('Setup my password'); } /** * {@inheritdoc} */ public function getButtonURL() { return $this->url; } }