Total Complexity | 8 |
Total Lines | 83 |
Duplicated Lines | 0 % |
Coverage | 28.57% |
Changes | 0 |
1 | <?php |
||
13 | class SchemaCreateTableEventArgs extends SchemaEventArgs |
||
14 | { |
||
15 | /** @var Table */ |
||
16 | private $table; |
||
17 | |||
18 | /** @var mixed[][] */ |
||
19 | private $columns; |
||
20 | |||
21 | /** @var mixed[] */ |
||
22 | private $options; |
||
23 | |||
24 | /** @var AbstractPlatform */ |
||
25 | private $platform; |
||
26 | |||
27 | /** @var string[] */ |
||
28 | private $sql = []; |
||
29 | |||
30 | /** |
||
31 | * @param mixed[][] $columns |
||
32 | * @param mixed[] $options |
||
33 | */ |
||
34 | 486 | public function __construct(Table $table, array $columns, array $options, AbstractPlatform $platform) |
|
35 | { |
||
36 | 486 | $this->table = $table; |
|
37 | 486 | $this->columns = $columns; |
|
38 | 486 | $this->options = $options; |
|
39 | 486 | $this->platform = $platform; |
|
40 | 486 | } |
|
41 | |||
42 | /** |
||
43 | * @return Table |
||
44 | */ |
||
45 | public function getTable() |
||
46 | { |
||
47 | return $this->table; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return mixed[][] |
||
52 | */ |
||
53 | public function getColumns() |
||
54 | { |
||
55 | return $this->columns; |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return mixed[] |
||
60 | */ |
||
61 | public function getOptions() |
||
62 | { |
||
63 | return $this->options; |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @return AbstractPlatform |
||
68 | */ |
||
69 | public function getPlatform() |
||
70 | { |
||
71 | return $this->platform; |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * @param string|string[] $sql |
||
76 | * |
||
77 | * @return \Doctrine\DBAL\Event\SchemaCreateTableEventArgs |
||
78 | */ |
||
79 | public function addSql($sql) |
||
88 | } |
||
89 | |||
90 | /** |
||
91 | * @return string[] |
||
92 | */ |
||
93 | public function getSql() |
||
96 | } |
||
97 | } |
||
98 |