| Total Complexity | 7 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 23.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class SchemaIndexDefinitionEventArgs extends SchemaEventArgs |
||
| 15 | { |
||
| 16 | /** @var Index|null */ |
||
| 17 | private $index = null; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Raw index data as fetched from the database. |
||
| 21 | * |
||
| 22 | * @var mixed[] |
||
| 23 | */ |
||
| 24 | private $tableIndex; |
||
| 25 | |||
| 26 | /** @var string */ |
||
| 27 | private $table; |
||
| 28 | |||
| 29 | /** @var Connection */ |
||
| 30 | private $connection; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param mixed[] $tableIndex |
||
| 34 | */ |
||
| 35 | 26 | public function __construct(array $tableIndex, string $table, Connection $connection) |
|
| 36 | { |
||
| 37 | 26 | $this->tableIndex = $tableIndex; |
|
| 38 | 26 | $this->table = $table; |
|
| 39 | 26 | $this->connection = $connection; |
|
| 40 | 26 | } |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Allows to clear the index which means the index will be excluded from tables index list. |
||
| 44 | */ |
||
| 45 | public function setIndex(?Index $index = null) : SchemaIndexDefinitionEventArgs |
||
| 46 | { |
||
| 47 | $this->index = $index; |
||
| 48 | |||
| 49 | return $this; |
||
| 50 | } |
||
| 51 | |||
| 52 | 26 | public function getIndex() : ?Index |
|
| 53 | { |
||
| 54 | 26 | return $this->index; |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return mixed[] |
||
| 59 | */ |
||
| 60 | public function getTableIndex() : array |
||
| 63 | } |
||
| 64 | |||
| 65 | public function getTable() : string |
||
| 66 | { |
||
| 67 | return $this->table; |
||
| 68 | } |
||
| 69 | |||
| 70 | public function getConnection() : Connection |
||
| 73 | } |
||
| 74 | |||
| 75 | public function getDatabasePlatform() : AbstractPlatform |
||
| 78 | } |
||
| 79 | } |
||
| 80 |