TYPO3 CMS  TYPO3_8-7
CreateIndexDefinitionItem.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 
23 {
27  public $indexName = '';
28 
34  public $isPrimary = false;
35 
41  public $isUnique = false;
42 
48  public $isFulltext = false;
49 
55  public $isSpatial = false;
56 
62  public $indexType = '';
63 
69  public $name = '';
70 
74  public $columnNames = [];
75 
81  public $options = [];
82 
92  public function __construct(
93  Identifier $indexName = null,
94  bool $isPrimary = false,
95  bool $isUnique = false,
96  bool $isSpatial = false,
97  bool $isFulltext = false
98  ) {
99  $this->indexName = $indexName;
100  $this->isPrimary = $isPrimary;
101  $this->isUnique = $isUnique;
102  $this->isSpatial = $isSpatial;
103  $this->isFulltext = $isFulltext;
104  }
105 }
__construct(Identifier $indexName=null, bool $isPrimary=false, bool $isUnique=false, bool $isSpatial=false, bool $isFulltext=false)