jamband\schemadump\SchemaDumpController::getSchemaType PHP Метод

getSchemaType() приватный Метод

Returns the schema type.
private getSchemaType ( ColumnSchema[] $column ) : string
$column ColumnSchema[]
Результат string the schema type
    private function getSchemaType($column)
    {
        if ($column->autoIncrement && !$column->unsigned) {
            return $column->type === 'bigint' ? $this->type('bigpk') : $this->type('pk');
        }
        if ($column->dbType === 'tinyint(1)') {
            return $this->type('boolean');
        }
        if ($column->enumValues !== null) {
            return "\"{$column->dbType}\"";
        }
        return $this->type($column->type);
    }