1 | <?php |
||
8 | class MigrationContainer |
||
9 | { |
||
10 | /** @var \SplFileInfo */ |
||
11 | protected $fileInfo; |
||
12 | |||
13 | /** @var \Wandu\Database\Contracts\Migrator\MigrateAdapterInterface */ |
||
14 | protected $adapter; |
||
15 | |||
16 | /** @var \Wandu\DI\ContainerInterface */ |
||
17 | protected $container; |
||
18 | |||
19 | /** |
||
20 | * @param \SplFileInfo $fileInfo |
||
21 | * @param \Wandu\Database\Contracts\Migrator\MigrateAdapterInterface $adapter |
||
22 | * @param \Wandu\DI\ContainerInterface $container |
||
23 | */ |
||
24 | public function __construct(SplFileInfo $fileInfo, MigrateAdapterInterface $adapter, ContainerInterface $container) |
||
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getName() |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getId() |
||
46 | |||
47 | /** |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function isApplied() |
||
54 | |||
55 | public function up() |
||
63 | |||
64 | public function down() |
||
72 | } |
||
73 |