36 lines
885 B
PHP
36 lines
885 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\DBAL\Mocks;
|
|
|
|
use Doctrine\DBAL\Platforms;
|
|
|
|
class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
|
|
{
|
|
public function getBooleanTypeDeclarationSql(array $columnDef) {}
|
|
public function getIntegerTypeDeclarationSql(array $columnDef) {}
|
|
public function getBigIntTypeDeclarationSql(array $columnDef) {}
|
|
public function getSmallIntTypeDeclarationSql(array $columnDef) {}
|
|
public function _getCommonIntegerTypeDeclarationSql(array $columnDef) {}
|
|
|
|
public function getVarcharTypeDeclarationSql(array $field)
|
|
{
|
|
return "DUMMYVARCHAR()";
|
|
}
|
|
|
|
/** @override */
|
|
public function getClobTypeDeclarationSql(array $field)
|
|
{
|
|
return 'DUMMYCLOB';
|
|
}
|
|
|
|
public function getVarcharDefaultLength()
|
|
{
|
|
return 255;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return 'mock';
|
|
}
|
|
}
|