Total Complexity | 7 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Message |
||
15 | { |
||
16 | protected $value; |
||
17 | protected $type; |
||
18 | protected $attributes = []; |
||
19 | |||
20 | public function __construct(...$value) |
||
23 | } |
||
24 | |||
25 | public static function make() |
||
26 | { |
||
27 | return new static(...func_get_args()); |
||
28 | } |
||
29 | |||
30 | public function type() |
||
31 | { |
||
32 | return $this->type; |
||
33 | } |
||
34 | |||
35 | protected function transform($value) |
||
36 | { |
||
37 | return $value; |
||
38 | } |
||
39 | |||
40 | public function setAttribute($key, $value) |
||
45 | } |
||
46 | |||
47 | public function toArray() |
||
52 | ]; |
||
53 | } |
||
54 | |||
55 | public function toJson() |
||
58 | } |
||
59 | } |
||
60 |