1 | <?php |
||
8 | abstract class Destination |
||
9 | { |
||
10 | /** |
||
11 | * @return string |
||
12 | */ |
||
13 | abstract public function jsonRepresentation(): string; |
||
14 | |||
15 | /** |
||
16 | * @return string |
||
17 | */ |
||
18 | 10 | public static function type(): string |
|
22 | |||
23 | /** |
||
24 | * @return string |
||
25 | */ |
||
26 | 5 | public function typedJsonRepresentation(): string |
|
33 | |||
34 | /** |
||
35 | * @param string $stringRepresentation |
||
36 | * @return Destination |
||
37 | */ |
||
38 | abstract public static function fromJsonRepresentation(string $stringRepresentation): Destination; |
||
39 | } |