Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Message implements MessageInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $type; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $text; |
||
18 | |||
19 | /** |
||
20 | * @return string |
||
21 | */ |
||
22 | public function getType(): string |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param string $type |
||
29 | * @return \Dandelion\Operation\Result\MessageInterface |
||
30 | */ |
||
31 | public function setType(string $type): MessageInterface |
||
32 | { |
||
33 | $this->type = $type; |
||
34 | |||
35 | return $this; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getText(): string |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param string $text |
||
48 | * |
||
49 | * @return \Dandelion\Operation\Result\MessageInterface |
||
50 | */ |
||
51 | public function setText(string $text): MessageInterface |
||
56 | } |
||
57 | } |
||
58 |