Total Complexity | 8 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class BaseMessage implements MessageInterface |
||
12 | { |
||
13 | /** @var string $type */ |
||
14 | protected $type; |
||
15 | |||
16 | /** @var string $message */ |
||
17 | protected $message; |
||
18 | |||
19 | /** @var string $key */ |
||
20 | protected $key; |
||
21 | |||
22 | public function __construct() |
||
25 | } |
||
26 | |||
27 | public function getType(): string |
||
30 | } |
||
31 | |||
32 | public function getMessage(): string |
||
33 | { |
||
34 | return $this->message; |
||
35 | } |
||
36 | |||
37 | public function getKey(): string |
||
38 | { |
||
39 | return $this->key; |
||
40 | } |
||
41 | |||
42 | public function setType(string $type): void |
||
43 | { |
||
44 | $this->type = $type; |
||
45 | } |
||
46 | |||
47 | public function setMessage(string $message): void |
||
48 | { |
||
49 | $this->message = $message; |
||
50 | } |
||
51 | |||
52 | public function setKey(string $key): void |
||
55 | } |
||
56 | |||
57 | public function toArray(): array |
||
58 | { |
||
59 | return [ |
||
66 |