| Total Complexity | 2 | 
| Total Lines | 23 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 16 | * Class NullTypeAdapter | ||
| 17 | * | ||
| 18 | * @author Nate Brunette <[email protected]> | ||
| 19 | */ | ||
| 20 | class NullTypeAdapter extends TypeAdapter | ||
| 21 | { | ||
| 22 | /** | ||
| 23 | * Read the next value, convert it to its type and return it | ||
| 24 | * | ||
| 25 | * @param JsonReadable $reader | ||
| 26 | * @return void|null | ||
| 27 | */ | ||
| 28 | 1 | public function read(JsonReadable $reader): void | |
| 31 | 1 | } | |
| 32 | |||
| 33 | /** | ||
| 34 | * Write the value to the writer for the type | ||
| 35 | * | ||
| 36 | * @param JsonWritable $writer | ||
| 37 | * @param mixed $value | ||
| 38 | * @return void | ||
| 39 | */ | ||
| 45 |