for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PolarAdmin\Polar\Notifications\Messages;
class PolarMessage
{
/**
* The notification body text.
*/
public $body;
* The status of the notification (info, success, warning, error).
public $status = 'info';
* Name of the entity or user sending the message.
public $from = 'system';
* The notification action url.
public $url;
* Extra data.
public $extra = [];
public function __construct(
string $body = '',
string $status = 'info',
string $from = 'system',
string $url = null,
array $extra = []
) {
$this->body = $body;
$this->status = $status;
$this->from = $from;
$this->url = $url;
$this->extra = $extra;
}
public function body(string $body) : self
return $this;
public function status(string $status) : self
public function from(string $from) : self
public function url(string $url) : self
public function extra(array $extra) : self