Total Complexity | 4 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class VodafoneMessage |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | public $content; |
||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | public $from; |
||
16 | |||
17 | /** |
||
18 | * Create a new message instance. |
||
19 | * |
||
20 | * @param string $content |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | public function __construct($content = '') |
||
25 | { |
||
26 | $this->content = $content; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Set the notification content. |
||
31 | * |
||
32 | * @param string $value |
||
33 | * |
||
34 | * @return $this |
||
35 | */ |
||
36 | public function content($value) |
||
37 | { |
||
38 | $this->content = $value; |
||
39 | |||
40 | return $this; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * Set the notification sender. |
||
45 | * |
||
46 | * @param string $value |
||
47 | * |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function from($value) |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Set the message type. |
||
59 | * |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function unicode() |
||
67 | } |
||
68 | } |
||
69 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..