| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class StringTypeAdapter extends TypeAdapter |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Read the next value, convert it to its type and return it |
||
| 25 | * |
||
| 26 | * @param JsonReadable $reader |
||
| 27 | * @return string|null |
||
| 28 | */ |
||
| 29 | 3 | public function read(JsonReadable $reader): ?string |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Write the value to the writer for the type |
||
| 41 | * |
||
| 42 | * @param JsonWritable $writer |
||
| 43 | * @param string|null $value |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | 2 | public function write(JsonWritable $writer, $value): void |
|
| 57 |