| Total Complexity | 1 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | abstract class TypeAdapter implements Cacheable |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Read the next value, convert it to its type and return it |
||
| 26 | * |
||
| 27 | * @param mixed $value |
||
| 28 | * @param ReaderContext $context |
||
| 29 | * @return mixed |
||
| 30 | */ |
||
| 31 | abstract public function read($value, ReaderContext $context); |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Write the value to the writer for the type |
||
| 35 | * |
||
| 36 | * @param mixed $value |
||
| 37 | * @param WriterContext $context |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | abstract public function write($value, WriterContext $context); |
||
| 41 | |||
| 42 | public function canCache(): bool |
||
| 47 |