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

Notification   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 8
eloc 15
c 1
b 0
f 1
dl 0
loc 51
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setLabel() 0 3 1
A setTitle() 0 3 1
A getText() 0 3 1
A setText() 0 3 1
A getLabel() 0 3 1
A getTitle() 0 3 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 $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