Passed
Push — master ( e7904e...63fbe9 )
by Paweł
09:23
created

Notification::setUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Entity;
4
5
use App\Model\NotificationInterface;
6
use App\Model\PersistableAwareTrait;
7
use App\Model\TimestampableAwareTrait;
8
9
class Notification implements NotificationInterface
10
{
11
    use TimestampableAwareTrait;
12
    use PersistableAwareTrait;
13
14
    private ?string $title = null;
15
16
    private ?string $text = null;
17
18
    private ?string $url = null;
19
20
    private ?string $urlTitle = null;
21
22
    private ?string $label = null;
23
24
    private bool $read = false;
25
26
    public function getTitle(): ?string
27
    {
28
        return $this->title;
29
    }
30
31
    public function setTitle(?string $title): void
32
    {
33
        $this->title = $title;
34
    }
35
36
    public function getText(): ?string
37
    {
38
        return $this->text;
39
    }
40
41
    public function setText(?string $text): void
42
    {
43
        $this->text = $text;
44
    }
45
46
    public function getUrl(): ?string
47
    {
48
        return $this->url;
49
    }
50
51
    public function setUrl(?string $url): void
52
    {
53
        $this->url = $url;
54
    }
55
56
    public function getLabel(): ?string
57
    {
58
        return $this->label;
59
    }
60
61
    public function setLabel(?string $label): void
62
    {
63
        $this->label = $label;
64
    }
65
66
    public function getUrlTitle(): ?string
67
    {
68
        return $this->urlTitle;
69
    }
70
71
    public function setUrlTitle(?string $urlTitle): void
72
    {
73
        $this->urlTitle = $urlTitle;
74
    }
75
76
    public function isRead(): bool
77
    {
78
        return $this->read;
79
    }
80
81
    public function setRead(bool $read): void
82
    {
83
        $this->read = $read;
84
    }
85
}
86