2008-08-01 22:46:14 +04:00
|
|
|
<?php
|
|
|
|
|
2009-01-04 19:15:32 +03:00
|
|
|
#namespace Doctrine\Tests\Mocks;
|
|
|
|
|
|
|
|
#use Doctrine\DBAL\Platforms\AbstractPlatform;
|
|
|
|
|
2008-09-12 12:59:44 +04:00
|
|
|
class Doctrine_DatabasePlatformMock extends Doctrine_DBAL_Platforms_AbstractPlatform
|
2008-08-01 22:46:14 +04:00
|
|
|
{
|
2008-09-07 17:48:40 +04:00
|
|
|
private $_prefersIdentityColumns = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2008-08-31 22:27:16 +04:00
|
|
|
public function getNativeDeclaration(array $field) {}
|
2008-09-07 17:48:40 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2008-08-01 22:46:14 +04:00
|
|
|
public function getPortableDeclaration(array $field) {}
|
2008-09-07 17:48:40 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
public function prefersIdentityColumns() {
|
|
|
|
return $this->_prefersIdentityColumns;
|
|
|
|
}
|
2009-01-07 20:46:02 +03:00
|
|
|
|
|
|
|
/** @override */
|
|
|
|
public function getIntegerTypeDeclarationSql(array $field) {}
|
|
|
|
|
|
|
|
/** @override */
|
|
|
|
public function getBigIntTypeDeclarationSql(array $field) {}
|
|
|
|
|
|
|
|
/** @override */
|
|
|
|
public function getTinyIntTypeDeclarationSql(array $field) {}
|
|
|
|
|
|
|
|
/** @override */
|
|
|
|
public function getSmallIntTypeDeclarationSql(array $field) {}
|
|
|
|
|
|
|
|
/** @override */
|
|
|
|
public function getMediumIntTypeDeclarationSql(array $field) {}
|
|
|
|
|
|
|
|
/** @override */
|
|
|
|
protected function _getCommonIntegerTypeDeclarationSql(array $columnDef) {}
|
|
|
|
|
|
|
|
/** @override */
|
|
|
|
public function getVarcharDeclarationSql(array $field) {}
|
2008-09-07 17:48:40 +04:00
|
|
|
|
|
|
|
/* MOCK API */
|
|
|
|
|
|
|
|
public function setPrefersIdentityColumns($bool)
|
|
|
|
{
|
|
|
|
$this->_prefersIdentityColumns = (bool)$bool;
|
|
|
|
}
|
|
|
|
|
2008-08-01 22:46:14 +04:00
|
|
|
}
|
|
|
|
|