|
@@ 215-219 (lines=5) @@
|
| 212 |
|
return $this; |
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
if ($handler instanceof JsonSerializer) { |
| 216 |
|
$this->typeAdapterFactories[] = new CustomWrappedTypeAdapterFactory(new TypeToken($type), $strict, $handler); |
| 217 |
|
|
| 218 |
|
return $this; |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
if ($handler instanceof JsonDeserializer) { |
| 222 |
|
$this->typeAdapterFactories[] = new CustomWrappedTypeAdapterFactory(new TypeToken($type), $strict, null, $handler); |
|
@@ 221-225 (lines=5) @@
|
| 218 |
|
return $this; |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
if ($handler instanceof JsonDeserializer) { |
| 222 |
|
$this->typeAdapterFactories[] = new CustomWrappedTypeAdapterFactory(new TypeToken($type), $strict, null, $handler); |
| 223 |
|
|
| 224 |
|
return $this; |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
throw new InvalidArgumentException(\sprintf('Handler of type "%s" is not supported', \get_class($handler))); |
| 228 |
|
} |