2009-06-20 16:59:33 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\DBAL\Mocks;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Platforms;
|
|
|
|
|
|
|
|
class MockPlatform extends \Doctrine\DBAL\Platforms\AbstractPlatform
|
|
|
|
{
|
2009-09-05 06:44:45 +04:00
|
|
|
public function getBooleanTypeDeclarationSql(array $columnDef) {}
|
2009-06-20 16:59:33 +04:00
|
|
|
public function getIntegerTypeDeclarationSql(array $columnDef) {}
|
|
|
|
public function getBigIntTypeDeclarationSql(array $columnDef) {}
|
|
|
|
public function getSmallIntTypeDeclarationSql(array $columnDef) {}
|
|
|
|
public function _getCommonIntegerTypeDeclarationSql(array $columnDef) {}
|
2009-07-11 12:48:57 +04:00
|
|
|
|
|
|
|
public function getVarcharTypeDeclarationSql(array $field)
|
|
|
|
{
|
|
|
|
return "DUMMYVARCHAR()";
|
|
|
|
}
|
2009-10-01 16:00:14 +04:00
|
|
|
|
|
|
|
/** @override */
|
|
|
|
public function getClobTypeDeclarationSql(array $field)
|
|
|
|
{
|
|
|
|
return 'DUMMYCLOB';
|
|
|
|
}
|
2009-07-11 12:48:57 +04:00
|
|
|
|
|
|
|
public function getVarcharDefaultLength()
|
|
|
|
{
|
|
|
|
return 255;
|
|
|
|
}
|
|
|
|
|
2009-06-20 16:59:33 +04:00
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return 'mock';
|
|
|
|
}
|
2009-07-11 12:48:57 +04:00
|
|
|
}
|