Passed
Pull Request — master (#48)
by Paweł
03:33
created

Notification   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 10
eloc 18
c 1
b 0
f 1
dl 0
loc 63
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A setUrlTitle() 0 3 1
A setLabel() 0 3 1
A setTitle() 0 3 1
A getText() 0 3 1
A setText() 0 3 1
A getUrlTitle() 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 $urlTitle = null;
21
22
    private ?string $label = null;
23
24
    public function getTitle(): ?string
25
    {
26
        return $this->title;
27
    }
28
29
    public function setTitle(?string $title): void
30
    {
31
        $this->title = $title;
32
    }
33
34
    public function getText(): ?string
35
    {
36
        return $this->text;
37
    }
38
39
    public function setText(?string $text): void
40
    {
41
        $this->text = $text;
42
    }
43
44
    public function getUrl(): ?string
45
    {
46
        return $this->url;
47
    }
48
49
    public function setUrl(?string $url): void
50
    {
51
        $this->url = $url;
52
    }
53
54
    public function getLabel(): ?string
55
    {
56
        return $this->label;
57
    }
58
59
    public function setLabel(?string $label): void
60
    {
61
        $this->label = $label;
62
    }
63
64
    public function getUrlTitle(): ?string
65
    {
66
        return $this->urlTitle;
67
    }
68
69
    public function setUrlTitle(?string $urlTitle): void
70
    {
71
        $this->urlTitle = $urlTitle;
72
    }
73
74
}
75