mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-26 06:57:58 +01:00
26 lines
550 B
PHP
26 lines
550 B
PHP
|
<?php
|
||
|
|
||
|
namespace Poniverse\Ponyfm\Mail;
|
||
|
|
||
|
class NewTrack extends BaseNotification
|
||
|
{
|
||
|
/**
|
||
|
* Build the message.
|
||
|
*
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function build()
|
||
|
{
|
||
|
$artistName = $this->initiatingUser->display_name;
|
||
|
$trackTitle = $this->activityRecord->resource->title;
|
||
|
|
||
|
return $this->renderEmail(
|
||
|
'new-track',
|
||
|
"{$artistName} published \"{$trackTitle}\"",
|
||
|
[
|
||
|
'artist' => $artistName,
|
||
|
'trackTitle' => $trackTitle,
|
||
|
]);
|
||
|
}
|
||
|
}
|