Page MenuHomeWickedGov Phorge

TextType.php
No OneTemporary

Size
733 B
Referenced Files
None
Subscribers
None

TextType.php

<?php
namespace Doctrine\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use function is_resource;
use function stream_get_contents;
/**
* Type that maps an SQL CLOB to a PHP string.
*/
class TextType extends Type
{
/**
* {@inheritDoc}
*/
public function getSQLDeclaration(array $column, AbstractPlatform $platform)
{
return $platform->getClobTypeDeclarationSQL($column);
}
/**
* {@inheritDoc}
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
return is_resource($value) ? stream_get_contents($value) : $value;
}
/**
* {@inheritDoc}
*/
public function getName()
{
return Types::TEXT;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 17:46 (1 d, 2 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fa/2f/afd62d04fbb45f9f643c6f01b342
Default Alt Text
TextType.php (733 B)

Event Timeline