1 | <?php |
||
8 | class SqlMigrationQuery implements MigrationQuery, ConnectionAwareInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var string[] |
||
12 | */ |
||
13 | protected $queries; |
||
14 | |||
15 | /** |
||
16 | * @var Connection |
||
17 | */ |
||
18 | protected $connection; |
||
19 | |||
20 | /** |
||
21 | * @param string|string[] $sql |
||
22 | * @throws \InvalidArgumentException if $sql is empty |
||
23 | */ |
||
24 | public function __construct($sql = null) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function setConnection(Connection $connection) |
||
43 | |||
44 | /** |
||
45 | * Adds SQL query |
||
46 | * |
||
47 | * @param string $query The SQL query |
||
48 | */ |
||
49 | public function addSql($query) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getDescription() |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function execute(LoggerInterface $logger) |
||
78 | } |
||
79 |