guild/common/models/email/AddToProjectEmail.php
2024-02-06 18:01:05 +03:00

25 lines
598 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace common\models\email;
use common\models\Project;
use common\models\ProjectUser;
use common\models\User;
use Yii;
class AddToProjectEmail extends Email
{
/**
* @param User $user
* @param Project $project
*/
public function __construct(User $user, Project $project)
{
$this->sendTo = $user->email;
$this->subject = 'Вас добавили в проект';
$this->mailLayout = ['html' => 'addToProjectByEmail-html', 'text' => 'addToProjectByEmail-text'];
$this->params = ['user' => $user, 'project' => $project];
}
}