| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 6 | class Message |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $type; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array|\JsonSerializable |
||
| 16 | */ |
||
| 17 | private $context; |
||
| 18 | |||
| 19 | public function __construct(string $type, $context) |
||
| 20 | { |
||
| 21 | $this->type = $type; |
||
| 22 | $this->context = $context; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function type(): string |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return array|\JsonSerializable |
||
| 35 | */ |
||
| 36 | public function context() |
||
| 41 |