Вход Регистрация
Файл: vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/StringType.php
Строк: 26
<?php

namespace DoctrineDBALTypes;

use 
DoctrineDBALPlatformsAbstractPlatform;

/**
 * Type that maps an SQL VARCHAR to a PHP string.
 */
class StringType extends Type
{
    
/**
     * {@inheritdoc}
     */
    
public function getSQLDeclaration(array $columnAbstractPlatform $platform)
    {
        return 
$platform->getVarcharTypeDeclarationSQL($column);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getDefaultLength(AbstractPlatform $platform)
    {
        return 
$platform->getVarcharDefaultLength();
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
Types::STRING;
    }
}
Онлайн: 1
Реклама