Passed
Pull Request — master (#45)
by Paweł
10:26
created

Notification::getTitle()   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 0
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 $label = null;
21
22
    public function getTitle(): ?string
23
    {
24
        return $this->title;
25
    }
26
27
    public function setTitle(?string $title): void
28
    {
29
        $this->title = $title;
30
    }
31
32
    public function getText(): ?string
33
    {
34
        return $this->text;
35
    }
36
37
    public function setText(?string $text): void
38
    {
39
        $this->text = $text;
40
    }
41
42
    public function getUrl(): ?string
43
    {
44
        return $this->url;
45
    }
46
47
    public function setUrl(?string $url): void
48
    {
49
        $this->url = $url;
50
    }
51
52
    public function getLabel(): ?string
53
    {
54
        return $this->label;
55
    }
56
57
    public function setLabel(?string $label): void
58
    {
59
        $this->label = $label;
60
    }
61
62
}
63