This commit is contained in:
@ -12,7 +12,6 @@ use InvalidArgumentException;
|
||||
|
||||
class Ntfy implements NotificationInterface
|
||||
{
|
||||
private Client $client;
|
||||
private string $topic = 'default';
|
||||
/**
|
||||
* Initialize with configuration.
|
||||
@ -28,9 +27,8 @@ class Ntfy implements NotificationInterface
|
||||
return $instance;
|
||||
}
|
||||
|
||||
public function __construct(Client $client)
|
||||
public function __construct(private Client $client)
|
||||
{
|
||||
$this->client = $client;
|
||||
}
|
||||
|
||||
public function setTopic(string $topic): void
|
||||
|
Reference in New Issue
Block a user