NotifableTelegramChannel::getMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Skater4\LaravelSentryNotifications\Notifications\Services\Telegram\Entities;
4
5
use Illuminate\Notifications\Notifiable;
6
use Skater4\LaravelSentryNotifications\Notifications\Interfaces\NotifableEntityInterface;
7
8
class NotifableTelegramChannel implements NotifableEntityInterface
9
{
10
    use Notifiable;
0 ignored issues
show
Bug introduced by
The trait Illuminate\Notifications\Notifiable requires the property $email which is not provided by Skater4\LaravelSentryNot...otifableTelegramChannel.
Loading history...
11
12
    private $chatId;
13
    private $eventUrl;
14
    private $message;
15
16
    public function __construct(
17
        string $chatId,
18
        string $message = '',
19
        string $eventUrl = ''
20
    )
21
    {
22
        $this->chatId   = $chatId;
23
        $this->eventUrl = $eventUrl;
24
        $this->message  = $message;
25
    }
26
27
    public function getChatId(): string
28
    {
29
        return $this->chatId;
30
    }
31
32
    public function setEventUrl(string $eventUrl): void
33
    {
34
        $this->eventUrl = $eventUrl;
35
    }
36
37
    public function getEventUrl(): string
38
    {
39
        return $this->eventUrl;
40
    }
41
42
    public function setMessage(string $message): void
43
    {
44
        $this->message = $message;
45
    }
46
47
    public function getMessage(): string
48
    {
49
        return $this->message;
50
    }
51
52
    public function getKey(): string
53
    {
54
        return $this->chatId;
55
    }
56
}
57