1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests/lib/mocks/Doctrine_DatabasePlatformMock.php
2008-09-07 13:48:40 +00:00

33 lines
615 B
PHP

<?php
class Doctrine_DatabasePlatformMock extends Doctrine_DatabasePlatform
{
private $_prefersIdentityColumns = false;
/**
* @override
*/
public function getNativeDeclaration(array $field) {}
/**
* @override
*/
public function getPortableDeclaration(array $field) {}
/**
* @override
*/
public function prefersIdentityColumns() {
return $this->_prefersIdentityColumns;
}
/* MOCK API */
public function setPrefersIdentityColumns($bool)
{
$this->_prefersIdentityColumns = (bool)$bool;
}
}
?>