| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class StringTypeAdapter extends TypeAdapter |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Read the next value, convert it to its type and return it |
||
| 20 | * |
||
| 21 | * @param JsonReadable $reader |
||
| 22 | * @return string|null |
||
| 23 | */ |
||
| 24 | public function read(JsonReadable $reader): ?string |
||
| 32 | 1 | } |
|
| 33 | 1 | ||
| 34 | /** |
||
| 35 | * Write the value to the writer for the type |
||
| 36 | 2 | * |
|
| 37 | * @param JsonWritable $writer |
||
| 38 | * @param string|null $value |
||
| 39 | * @return void |
||
| 40 | */ |
||
| 41 | public function write(JsonWritable $writer, $value): void |
||
| 52 |