Sort of working beta
This commit is contained in:
32
app/Notification/NotificationBody/SimpleNotificationBody.php
Normal file
32
app/Notification/NotificationBody/SimpleNotificationBody.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notification\NotificationBody;
|
||||
|
||||
use App\Notification\NotificationBody;
|
||||
use App\Notification\Stringifiable;
|
||||
|
||||
class SimpleNotificationBody extends NotificationBody {
|
||||
|
||||
private string $body;
|
||||
|
||||
public function __construct(string $body) {
|
||||
$this->body = $body;
|
||||
}
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function toMarkdownString(): string {
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
public function toHTMLString(): string {
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function toString(): string {
|
||||
return $this->body;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user