for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Doctrine\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform;
/**
* Type that maps an SQL VARCHAR to a PHP string.
*
* @since 2.0
*/
class StringType extends Type
{
* {@inheritdoc}
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration);
}
public function getName()
return Type::STRING;