1 | <?php |
||
7 | class MigrateAdapter implements MigrateAdapterInterface |
||
8 | { |
||
9 | /** @var \Wandu\Database\Contracts\ConnectionInterface */ |
||
10 | protected $connection; |
||
11 | |||
12 | /** @var string */ |
||
13 | protected $tableName; |
||
14 | |||
15 | public function __construct(Manager $manager, Configuration $config) |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function initialize() |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function versions() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function version($id) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function up($id, $source) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function down($id) |
||
89 | |||
90 | /** |
||
91 | * @return bool |
||
92 | */ |
||
93 | protected function hasMigrateTable() |
||
103 | } |
||
104 |