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

Notification::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 2
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