| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function __construct($commnad) |
||
| 13 | {
|
||
| 14 | $this->array = [ |
||
| 15 | "--migration" => function ($file) {
|
||
| 16 | (new FileCreate)->createFile($file); |
||
| 17 | echo "\e[32mMigration " . $file . " on successfully"; |
||
| 18 | }, |
||
| 19 | "--migrate" => function () {
|
||
| 20 | echo "\e[32mStarting the migration\n"; |
||
| 21 | (new MigrationFile)->actionMigration(); |
||
| 22 | } |
||
| 23 | ]; |
||
| 24 | |||
| 25 | $this->handleAction($commnad); |
||
| 26 | } |
||
| 41 |