Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Mocks / DatabasePlatformMock.php
1 <?php
2
3 namespace Doctrine\Tests\Mocks;
4
5 class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform
6 {
7     private $_sequenceNextValSql = "";
8     private $_prefersIdentityColumns = true;
9     private $_prefersSequences = false;
10
11     /**
12      * @override
13      */
14     public function getNativeDeclaration(array $field) {}
15
16     /**
17      * @override
18      */
19     public function getPortableDeclaration(array $field) {}
20
21     /**
22      * @override
23      */
24     public function prefersIdentityColumns()
25     {
26         return $this->_prefersIdentityColumns;
27     }
28
29     /**
30      * @override
31      */
32     public function prefersSequences()
33     {
34         return $this->_prefersSequences;
35     }
36
37     /** @override */
38     public function getSequenceNextValSQL($sequenceName)
39     {
40         return $this->_sequenceNextValSql;
41     }
42
43     /** @override */
44     public function getBooleanTypeDeclarationSQL(array $field) {}
45
46     /** @override */
47     public function getIntegerTypeDeclarationSQL(array $field) {}
48
49     /** @override */
50     public function getBigIntTypeDeclarationSQL(array $field) {}
51
52     /** @override */
53     public function getSmallIntTypeDeclarationSQL(array $field) {}
54
55     /** @override */
56     protected function _getCommonIntegerTypeDeclarationSQL(array $columnDef) {}
57
58     /** @override */
59     public function getVarcharTypeDeclarationSQL(array $field) {}
60
61     /** @override */
62     public function getClobTypeDeclarationSQL(array $field) {}
63
64     /* MOCK API */
65
66     public function setPrefersIdentityColumns($bool)
67     {
68         $this->_prefersIdentityColumns = $bool;
69     }
70
71     public function setPrefersSequences($bool)
72     {
73         $this->_prefersSequences = $bool;
74     }
75
76     public function setSequenceNextValSql($sql)
77     {
78         $this->_sequenceNextValSql = $sql;
79     }
80
81     public function getName()
82     {
83         return 'mock';
84     }
85
86     protected function initializeDoctrineTypeMappings()
87     {
88
89     }
90     /**
91      * Gets the SQL Snippet used to declare a BLOB column type.
92      */
93     public function getBlobTypeDeclarationSQL(array $field)
94     {
95         throw DBALException::notSupported(__METHOD__);
96     }
97 }