%PDF- %PDF-
Direktori : /var/www/html/diaspora/api/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/ |
Current File : /var/www/html/diaspora/api/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/GuidType.php |
<?php namespace Doctrine\DBAL\Types; use Doctrine\DBAL\Platforms\AbstractPlatform; /** * Represents a GUID/UUID datatype (both are actually synonyms) in the database. */ class GuidType extends StringType { /** * {@inheritdoc} */ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { return $platform->getGuidTypeDeclarationSQL($fieldDeclaration); } /** * {@inheritdoc} */ public function getName() { return Type::GUID; } /** * {@inheritdoc} */ public function requiresSQLCommentHint(AbstractPlatform $platform) { return ! $platform->hasNativeGuidType(); } }