| 1 | <?php | ||
| 8 | abstract class Destination | ||
| 9 | { | ||
| 10 | /** | ||
| 11 | * @return string | ||
| 12 | */ | ||
| 13 | abstract public function destinationType(): string; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * @return string | ||
| 17 | */ | ||
| 18 | abstract public function jsonRepresentation(): string; | ||
| 19 | |||
| 20 | /** | ||
| 21 | * @return string | ||
| 22 | */ | ||
| 23 | public function typedJsonRepresentation(): string | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @param string $stringRepresentation | ||
| 33 | * @return Destination | ||
| 34 | */ | ||
| 35 | abstract public static function fromJsonRepresentation(string $stringRepresentation): Destination; | ||
| 36 | } |