portal.mkgtu.ru/common/services/messagesDeliver/email/EmailRecipient.php

21 lines
395 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace common\services\messagesDeliver\email;
use common\services\messagesDeliver\IMessageRecipient;
class EmailRecipient implements IMessageRecipient
{
private string $email;
public function __construct(\common\models\User $user)
{
$this->email = $user->email;
}
public function getRecipientAddress(): string
{
return $this->email;
}
}