1 | <?php |
||
27 | class AdresseResponseDeserializer { |
||
28 | |||
29 | /** |
||
30 | * Deserialize an adresse. |
||
31 | * |
||
32 | * @param string $response The response. |
||
33 | * @param string[] $headers The headers. |
||
34 | * @return Adresse Returns the adresse. |
||
35 | */ |
||
36 | 25 | protected static function deserializeAdresse(string $response, array $headers): Adresse { |
|
60 | |||
61 | /** |
||
62 | * Deserialize a CSV response. |
||
63 | * |
||
64 | * @param string $rawResponse The raw response. |
||
65 | * @param AbstractCsvResponse $model The CSV response. |
||
66 | * @return AbstractCsvResponse Returns the CSV response. |
||
67 | */ |
||
68 | 25 | protected static function deserializeCsvResponse(string $rawResponse, AbstractCsvResponse $model): AbstractCsvResponse { |
|
93 | |||
94 | /** |
||
95 | * Deserialize a reverse CSV response. |
||
96 | * |
||
97 | * @param string $rawResponse The raw response. |
||
98 | * @return ReverseCsvResponse Returns the reverse CSV response. |
||
99 | */ |
||
100 | 10 | public static function deserializeReverseCsvResponse(string $rawResponse): ReverseCsvResponse { |
|
103 | |||
104 | /** |
||
105 | * Deserialize a reverse response. |
||
106 | * |
||
107 | * @param string $rawResponse The raw response. |
||
108 | * @return FeatureCollection|null Returns the reverse response in case of success, null otherwise. |
||
109 | */ |
||
110 | 5 | public static function deserializeReverseResponse(string $rawResponse): ?FeatureCollection { |
|
113 | |||
114 | /** |
||
115 | * Deserialize a search CSV response. |
||
116 | * |
||
117 | * @param string $rawResponse The raw response. |
||
118 | * @return SearchCsvResponse Returns the search CSV response. |
||
119 | */ |
||
120 | 15 | public static function deserializeSearchCsvResponse(string $rawResponse) { |
|
123 | |||
124 | /** |
||
125 | * Deserialize a search response. |
||
126 | * |
||
127 | * @param string $rawResponse The raw response. |
||
128 | * @return FeatureCollection|null Returns the search response in case of success, null otherwise. |
||
129 | */ |
||
130 | 10 | public static function deserializeSearchResponse(string $rawResponse): ?FeatureCollection { |
|
139 | |||
140 | /** |
||
141 | * Get the methods. |
||
142 | * |
||
143 | * @return string[] Returns the methods. |
||
144 | */ |
||
145 | 25 | protected static function getMethods(): array { |
|
166 | } |