2008-08-01 18:46:14 +00:00
|
|
|
<?php
|
|
|
|
|
2009-01-22 19:38:10 +00:00
|
|
|
namespace Doctrine\Tests\Mocks;
|
2009-01-04 16:15:32 +00:00
|
|
|
|
2009-01-22 19:38:10 +00:00
|
|
|
class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform
|
2008-08-01 18:46:14 +00:00
|
|
|
{
|
2008-09-07 13:48:40 +00:00
|
|
|
private $_prefersIdentityColumns = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2008-08-31 18:27:16 +00:00
|
|
|
public function getNativeDeclaration(array $field) {}
|
2008-09-07 13:48:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2008-08-01 18:46:14 +00:00
|
|
|
public function getPortableDeclaration(array $field) {}
|
2008-09-07 13:48:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2009-02-18 07:59:11 +00:00
|
|
|
public function prefersIdentityColumns()
|
|
|
|
{
|
2008-09-07 13:48:40 +00:00
|
|
|
return $this->_prefersIdentityColumns;
|
|
|
|
}
|
2009-01-07 17:46:02 +00: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 13:48:40 +00:00
|
|
|
|
|
|
|
/* MOCK API */
|
|
|
|
|
|
|
|
public function setPrefersIdentityColumns($bool)
|
|
|
|
{
|
|
|
|
$this->_prefersIdentityColumns = (bool)$bool;
|
|
|
|
}
|
2009-02-18 07:59:11 +00:00
|
|
|
}
|