TYPO3 CMS  TYPO3_8-7
MockPlatform.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
19 
20 class MockPlatform extends AbstractPlatform
21 {
29  public function getBlobTypeDeclarationSQL(array $field)
30  {
31  throw DBALException::notSupported(__METHOD__);
32  }
33 
41  public function getBooleanTypeDeclarationSQL(array $columnDef)
42  {
43  }
44 
52  public function getIntegerTypeDeclarationSQL(array $columnDef)
53  {
54  }
55 
63  public function getBigIntTypeDeclarationSQL(array $columnDef)
64  {
65  }
66 
74  public function getSmallIntTypeDeclarationSQL(array $columnDef)
75  {
76  }
77 
85  public function _getCommonIntegerTypeDeclarationSQL(array $columnDef)
86  {
87  }
88 
96  public function getVarcharTypeDeclarationSQL(array $field)
97  {
98  return 'DUMMYVARCHAR()';
99  }
100 
108  public function getClobTypeDeclarationSQL(array $field)
109  {
110  return 'DUMMYCLOB';
111  }
112 
123  public function getJsonTypeDeclarationSQL(array $field)
124  {
125  return 'DUMMYJSON';
126  }
127 
135  public function getBinaryTypeDeclarationSQL(array $field)
136  {
137  return 'DUMMYBINARY';
138  }
139 
145  public function getVarcharDefaultLength()
146  {
147  return 255;
148  }
149 
155  public function getName()
156  {
157  return 'mock';
158  }
159 
163  protected function initializeDoctrineTypeMappings()
164  {
165  }
166 
175  protected function getVarcharTypeDeclarationSQLSnippet($length, $fixed)
176  {
177  }
178 
186  protected function getReservedKeywordsClass()
187  {
188  return MockKeywordList::class;
189  }
190 }