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