| Total Complexity | 6 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class JsonColumn extends Column |
||
| 15 | { |
||
| 16 | public function __construct( |
||
| 17 | string|null $type = SchemaInterface::TYPE_JSON, |
||
| 18 | string|null $phpType = SchemaInterface::PHP_TYPE_ARRAY, |
||
| 19 | ) { |
||
| 20 | parent::__construct($type, $phpType); |
||
| 21 | |||
| 22 | $this->dbType('json'); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function dbTypecast(mixed $value): ExpressionInterface|null |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @throws \JsonException |
||
| 36 | */ |
||
| 37 | public function phpTypecast(mixed $value): mixed |
||
| 44 | } |
||
| 45 | } |
||
| 46 |