Total Complexity | 13 |
Total Lines | 82 |
Duplicated Lines | 0 % |
Coverage | 67.74% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class FlashMessage { |
||
6 | protected ?string $title; |
||
7 | protected ?string $content; |
||
8 | protected ?string $type; |
||
9 | protected ?string $icon; |
||
10 | |||
11 | 9 | public function __construct(string $content,string $title=NULL,string $type='info',string $icon=null){ |
|
13 | } |
||
14 | |||
15 | 9 | public function setValues(string $content,string $title=NULL,string $type=NULL,string $icon=null){ |
|
20 | } |
||
21 | /** |
||
22 | * @return string|null |
||
23 | */ |
||
24 | 4 | public function getContent(): ?string { |
|
25 | 4 | return $this->content; |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | 4 | public function getType(): ?string { |
|
32 | 4 | return $this->type; |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return string|null |
||
37 | */ |
||
38 | 2 | public function getIcon(): ?string { |
|
39 | 2 | return $this->icon; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param string $content |
||
44 | */ |
||
45 | public function setContent(string $content) { |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param string $type |
||
51 | */ |
||
52 | public function setType(string $type) { |
||
53 | $this->type = $type; |
||
54 | } |
||
55 | |||
56 | public function addType(string $type){ |
||
57 | $this->type.=' '.$type; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param string $icon |
||
62 | */ |
||
63 | public function setIcon(string $icon) { |
||
64 | $this->icon = $icon; |
||
65 | } |
||
66 | /** |
||
67 | * @return string|null |
||
68 | */ |
||
69 | 3 | public function getTitle(): ?string { |
|
71 | } |
||
72 | |||
73 | /** |
||
74 | * @param string $title |
||
75 | */ |
||
76 | public function setTitle(string $title) { |
||
78 | } |
||
79 | |||
80 | 2 | public function parseContent(array $keyValues): self { |
|
87 | } |
||
88 | } |
||
89 |