src/Message/SendVerifyAccountMessage.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Message;
  3. use App\Entity\Users;
  4. use App\Message\SendMessage;
  5. class SendVerifyAccountMessage extends SendMessage
  6. {
  7.     protected string $verificationUrl;
  8.     protected string $wasNotMeUrl;
  9.     public function setVerificationUrl(string $verificationUrl)
  10.     {
  11.         $this->verificationUrl $verificationUrl;
  12.         return $this;
  13.     }
  14.     public function getVerificationUrl(): string
  15.     {
  16.         return $this->verificationUrl;
  17.     }
  18.     public function setWasNotMeUrl(string $wasNotMeUrl)
  19.     {
  20.         $this->wasNotMeUrl $wasNotMeUrl;
  21.         return $this;
  22.     }
  23.     public function getWasNotMeUrl(): string
  24.     {
  25.         return $this->wasNotMeUrl;
  26.     }
  27.     public function getLinkIconUrl(): string {
  28.         return $this->getBaseApiUrl()."/images/link-icon.png";
  29.     }
  30.     public function getContext(): array {
  31.         return parent::getContext() + [
  32.             'linkIconUrl' => $this->getLinkIconUrl(),
  33.             'verificationUrl' => $this->getVerificationUrl(),
  34.             'wasNotMeUrl' => $this->getWasNotMeUrl(),
  35.         ];
  36.     }
  37. }