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