<?php

namespace ReloadifyScoped\Doctrine\DBAL\Types;

use ReloadifyScoped\Doctrine\DBAL\Platforms\AbstractPlatform;
/**
 * Type that maps an SQL VARCHAR to a PHP string.
 */
class StringType extends Type
{
    /**
     * {@inheritdoc}
     */
    public function getSQLDeclaration(array $column, AbstractPlatform $platform)
    {
        return $platform->getVarcharTypeDeclarationSQL($column);
    }
    /**
     * {@inheritdoc}
     */
    public function getDefaultLength(AbstractPlatform $platform)
    {
        return $platform->getVarcharDefaultLength();
    }
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return Types::STRING;
    }
}
