Passed
Push — master ( ff11da...1e5fc5 )
by Luiz Kim
04:38 queued 02:12
created

Notification   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 19
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getData() 0 3 1
A getTopic() 0 3 1
1
<?php
2
3
namespace ControleOnline\Message;
4
5
class Notification
6
{
7
    private $data;
8
    private $topic;
9
10
    public function __construct(array $data, string $topic)
11
    {
12
        $this->data = $data;
13
        $this->topic = $topic;
14
    }
15
16
    public function getData(): array
17
    {
18
        return $this->data;
19
    }
20
21
    public function getTopic(): string
22
    {
23
        return $this->topic;
24
    }
25
}
26