Total Complexity | 8 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class NotifyLKMessage implements Arrayable |
||
8 | { |
||
9 | private $content; |
||
10 | private $to; |
||
11 | private $isUnicode; |
||
12 | private $sender = null; |
||
13 | |||
14 | /** @var Contact */ |
||
15 | private $contact = null; |
||
16 | |||
17 | 6 | public function content(string $content, bool $isUnicode = false) |
|
18 | { |
||
19 | 6 | $this->content = $content; |
|
20 | 6 | $this->isUnicode = $isUnicode; |
|
21 | |||
22 | 6 | return $this; |
|
23 | } |
||
24 | |||
25 | 6 | public function to(string $to) |
|
26 | { |
||
27 | 6 | $this->to = $to; |
|
28 | |||
29 | 6 | return $this; |
|
30 | } |
||
31 | |||
32 | public function sender(string $sender) |
||
37 | } |
||
38 | |||
39 | 3 | public function contact(Contact $contact) |
|
40 | { |
||
41 | 3 | $this->contact = $contact; |
|
42 | |||
43 | 3 | return $this; |
|
44 | } |
||
45 | |||
46 | 6 | public function toArray() |
|
65 | } |
||
66 | } |
||
67 |