TYPO3 CMS  TYPO3_8-7
CreateColumnDefinitionItem.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
3 
5 
6 /*
7  * This file is part of the TYPO3 CMS project.
8  *
9  * It is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License, either version 2
11  * of the License, or any later version.
12  *
13  * For the full copyright and license information, please read the
14  * LICENSE.txt file that was distributed with this source code.
15  *
16  * The TYPO3 project - inspiring people to share!
17  */
18 
20 
26 {
30  public $columnName;
31 
35  public $dataType;
36 
42  public $allowNull = true;
43 
49  public $hasDefaultValue = false;
50 
56  public $defaultValue;
57 
63  public $autoIncrement = false;
64 
70  public $index = false;
71 
77  public $unique = false;
78 
84  public $primary = false;
85 
91  public $comment;
92 
98  public $columnFormat;
99 
105  public $storage;
106 
110  public $reference;
111 
119  {
120  $this->columnName = $columnName;
121  $this->dataType = $dataType;
122  }
123 }