src/Db/Schema/Column.php
public static function fromColumn(Db\Column $column)
    {
        $data = $column->toArray();
        if (isset($data['type']) && is_integer($data['type'])) {
            $data['type'] = self::getTypeName($data['type']);
        }
        if (isset($data['bindType']) && is_integer($data['bindType'])) {
            $data['bindType'] = self::getBindName($data['bindType']);
        }
        
        return new self($data);
    }
public static function fromColumn(Db\Column $column)
    {
        $data = $column->toArray();
        if (isset($data['type']) && is_integer($data['type'])) {
            $data['type'] = self::getTypeName($data['type']);
        }
        if (isset($data['bindType']) && is_integer($data['bindType'])) {
            $data['bindType'] = self::getBindName($data['bindType']);
        }
        
        return new self($data);
    }
public static function fromColumn ( Db \ Column $ column ) { $ data = $ column -> toArray ( ) ; if ( isset ( $ data [ 'type' ] ) && is_integer ( $ data [ 'type' ] ) ) { $ data [ 'type' ] = self :: getTypeName ( $ data [ 'type' ] ) ; } if ( isset ( $ data [ 'bindType' ] ) && is_integer ( $ data [ 'bindType' ] ) ) { $ data [ 'bindType' ] = self :: getBindName ( $ data [ 'bindType' ] ) ; } return new self ( $ data ) ; }
create column object
create column object