Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class MessageGetter implements GetterInterface |
||
15 | { |
||
16 | public function getName(): string |
||
17 | { |
||
18 | return 'message'; |
||
19 | } |
||
20 | |||
21 | public function getValue($object) |
||
22 | { |
||
23 | return $object->getMessage(); |
||
24 | } |
||
25 | |||
26 | public function toType(): ?Type |
||
27 | { |
||
28 | return new Type(Type::BUILTIN_TYPE_STRING); |
||
29 | } |
||
30 | |||
31 | public function getPriority(): int |
||
34 | } |
||
35 | } |
||
36 |