user = $user; } /** * {@inheritdoc} */ public function getSubject() { return $this->app->trans('admin::register: Nouvelle commande sur %application%', ['%application%' => $this->getPhraseanetTitle()]); } /** * {@inheritdoc} */ public function getMessage() { if (!$this->user instanceof User) { throw new LogicException('You must set a user before calling getMessage()'); } return $this->app->trans('%user% has ordered documents', ['%user%' => $this->user->getDisplayName()]); } /** * {@inheritdoc} */ public function getButtonText() { return $this->app->trans('Review order on %website%', ['%website%' => $this->getPhraseanetTitle()]); } /** * {@inheritdoc} */ public function getButtonURL() { return $this->app->url('prod'); } }