| Total Complexity | 8 |
| Total Lines | 74 |
| Duplicated Lines | 0 % |
| Coverage | 22.86% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class SchemaColumnDefinitionEventArgs extends SchemaEventArgs |
||
| 15 | { |
||
| 16 | /** @var Column|null */ |
||
| 17 | private $column = null; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Raw column data as fetched from the database. |
||
| 21 | * |
||
| 22 | * @var mixed[] |
||
| 23 | */ |
||
| 24 | private $tableColumn; |
||
| 25 | |||
| 26 | /** @var string */ |
||
| 27 | private $table; |
||
| 28 | |||
| 29 | /** @var string */ |
||
| 30 | private $database; |
||
| 31 | |||
| 32 | /** @var Connection */ |
||
| 33 | private $connection; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param mixed[] $tableColumn |
||
| 37 | */ |
||
| 38 | 19 | public function __construct(array $tableColumn, string $table, ?string $database, Connection $connection) |
|
| 44 | 19 | } |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Allows to clear the column which means the column will be excluded from |
||
| 48 | * tables column list. |
||
| 49 | */ |
||
| 50 | public function setColumn(?Column $column = null) : self |
||
| 51 | { |
||
| 52 | $this->column = $column; |
||
| 53 | |||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | |||
| 57 | 19 | public function getColumn() : ?Column |
|
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return mixed[] |
||
| 64 | */ |
||
| 65 | public function getTableColumn() : array |
||
| 66 | { |
||
| 67 | return $this->tableColumn; |
||
| 68 | } |
||
| 69 | |||
| 70 | public function getTable() : string |
||
| 71 | { |
||
| 72 | return $this->table; |
||
| 73 | } |
||
| 74 | |||
| 75 | public function getDatabase() : string |
||
| 76 | { |
||
| 77 | return $this->database; |
||
| 78 | } |
||
| 79 | |||
| 80 | public function getConnection() : Connection |
||
| 83 | } |
||
| 84 | |||
| 85 | public function getDatabasePlatform() : AbstractPlatform |
||
| 86 | { |
||
| 87 | return $this->connection->getDatabasePlatform(); |
||
| 90 |