1 | <?php |
||
7 | class MigrationFiles |
||
8 | { |
||
9 | private $path; |
||
10 | private $schemaTable; |
||
11 | private $statusIntention = false; |
||
12 | |||
13 | /** |
||
14 | * @param string $path Migrations path. |
||
15 | * @param SchemaTable $schemaTable SchemaTable instance. |
||
16 | */ |
||
17 | public function __construct($path, SchemaTable $schemaTable) |
||
22 | |||
23 | /** |
||
24 | * Gets migration files. |
||
25 | * |
||
26 | * @param string $version Version of migration. |
||
27 | * |
||
28 | * @return MigrationFile[] |
||
29 | */ |
||
30 | public function get($version = null) |
||
63 | |||
64 | /** |
||
65 | * This method is called when status of migrations is checking. |
||
66 | * |
||
67 | * @return MigrationFiles |
||
68 | */ |
||
69 | public function statusIntention() |
||
75 | |||
76 | /** |
||
77 | * Gets files from directory. |
||
78 | * |
||
79 | * @param bool $migrateUp Is migration up. |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | private function getFiles($migrateUp) |
||
97 | } |
||
98 |