<?php
namespace App\Message;
use App\Entity\Users;
use App\Message\SendMessage;
class SendVerifyAccountMessage extends SendMessage
{
protected string $verificationUrl;
protected string $wasNotMeUrl;
public function setVerificationUrl(string $verificationUrl)
{
$this->verificationUrl = $verificationUrl;
return $this;
}
public function getVerificationUrl(): string
{
return $this->verificationUrl;
}
public function setWasNotMeUrl(string $wasNotMeUrl)
{
$this->wasNotMeUrl = $wasNotMeUrl;
return $this;
}
public function getWasNotMeUrl(): string
{
return $this->wasNotMeUrl;
}
public function getLinkIconUrl(): string {
return $this->getBaseApiUrl()."/images/link-icon.png";
}
public function getContext(): array {
return parent::getContext() + [
'linkIconUrl' => $this->getLinkIconUrl(),
'verificationUrl' => $this->getVerificationUrl(),
'wasNotMeUrl' => $this->getWasNotMeUrl(),
];
}
}