‪TYPO3CMS  ‪main
CreateIndexDefinitionItem.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
26 {
27  // Use a special index type (MySQL: BTREE | HASH)
28  public string ‪$indexType = '';
29  // @var IndexColumnName[]
30  public array ‪$columnNames = [];
31  // Index options KEY_BLOCK_SIZE, USING, WITH PARSER or COMMENT
32  public array ‪$options = [];
33 
34  public function ‪__construct(
35  public readonly ?‪Identifier $indexName = null,
36  public readonly bool $isPrimary = false,
37  public readonly bool $isUnique = false,
38  public readonly bool $isSpatial = false,
39  public readonly bool $isFulltext = false
40  ) {}
41 }
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\Identifier
Definition: Identifier.php:27
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$options
‪array $options
Definition: CreateIndexDefinitionItem.php:32
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem
Definition: CreateIndexDefinitionItem.php:26
‪TYPO3\CMS\Core\Database\Schema\Parser\AST
Definition: AbstractCreateDefinitionItem.php:18
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$indexType
‪string $indexType
Definition: CreateIndexDefinitionItem.php:28
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\__construct
‪__construct(public readonly ?Identifier $indexName=null, public readonly bool $isPrimary=false, public readonly bool $isUnique=false, public readonly bool $isSpatial=false, public readonly bool $isFulltext=false)
Definition: CreateIndexDefinitionItem.php:34
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\CreateIndexDefinitionItem\$columnNames
‪array $columnNames
Definition: CreateIndexDefinitionItem.php:30
‪TYPO3\CMS\Core\Database\Schema\Parser\AST\AbstractCreateDefinitionItem
Definition: AbstractCreateDefinitionItem.php:24