| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class DefaultJsonMessage extends DefaultMessage |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | protected $message = [ |
||
| 11 | 'date' => '', |
||
| 12 | 'time' => '', |
||
| 13 | 'data' => '', |
||
| 14 | ]; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $context = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string|array|object $message |
||
| 23 | * @param array $context |
||
| 24 | * @return $this |
||
| 25 | */ |
||
| 26 | 4 | public function createMessage($message, array $context) |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 4 | public function getMessage() |
|
| 55 |
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..