| Total Complexity | 5 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 30.76% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class SchemaDropTableEventArgs extends SchemaEventArgs |
||
| 13 | { |
||
| 14 | /** @var string|Table */ |
||
| 15 | private $table; |
||
| 16 | |||
| 17 | /** @var AbstractPlatform */ |
||
| 18 | private $platform; |
||
| 19 | |||
| 20 | /** @var string|null */ |
||
| 21 | private $sql = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string|Table $table |
||
| 25 | * |
||
| 26 | * @throws InvalidArgumentException |
||
| 27 | */ |
||
| 28 | 486 | public function __construct($table, AbstractPlatform $platform) |
|
| 29 | { |
||
| 30 | 486 | $this->table = $table; |
|
| 31 | 486 | $this->platform = $platform; |
|
| 32 | 486 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return string|Table |
||
| 36 | */ |
||
| 37 | public function getTable() |
||
| 38 | { |
||
| 39 | return $this->table; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return AbstractPlatform |
||
| 44 | */ |
||
| 45 | public function getPlatform() |
||
| 46 | { |
||
| 47 | return $this->platform; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $sql |
||
| 52 | * |
||
| 53 | * @return \Doctrine\DBAL\Event\SchemaDropTableEventArgs |
||
| 54 | */ |
||
| 55 | public function setSql($sql) |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return string|null |
||
| 64 | */ |
||
| 65 | public function getSql() |
||
| 70 |