|
@@ 164-168 (lines=5) @@
|
| 161 |
|
return $this; |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
if ($handler instanceof JsonSerializer && $handler instanceof JsonDeserializer) { |
| 165 |
|
$this->typeAdapterFactories[] = new CustomWrappedTypeAdapterFactory(new PhpType($type), $handler, $handler); |
| 166 |
|
|
| 167 |
|
return $this; |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
if ($handler instanceof JsonSerializer) { |
| 171 |
|
$this->typeAdapterFactories[] = new CustomWrappedTypeAdapterFactory(new PhpType($type), $handler); |
|
@@ 170-174 (lines=5) @@
|
| 167 |
|
return $this; |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
if ($handler instanceof JsonSerializer) { |
| 171 |
|
$this->typeAdapterFactories[] = new CustomWrappedTypeAdapterFactory(new PhpType($type), $handler); |
| 172 |
|
|
| 173 |
|
return $this; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
if ($handler instanceof JsonDeserializer) { |
| 177 |
|
$this->typeAdapterFactories[] = new CustomWrappedTypeAdapterFactory(new PhpType($type), null, $handler); |
|
@@ 176-180 (lines=5) @@
|
| 173 |
|
return $this; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
if ($handler instanceof JsonDeserializer) { |
| 177 |
|
$this->typeAdapterFactories[] = new CustomWrappedTypeAdapterFactory(new PhpType($type), null, $handler); |
| 178 |
|
|
| 179 |
|
return $this; |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
throw new BadMethodCallException(sprintf('Handler of type "%s" is not supported', get_class($handler))); |
| 183 |
|
} |