Completed
Push — master ( 3d89d6...b1b27b )
by Alexander
03:40
created

AbstractMigrationRunner::getFileExtension()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
ccs 0
cts 0
cp 0
nc 1
1
<?php
2
/**
3
 * This file is part of the DB-Migration library.
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 *
7
 * @copyright Alexander Obuhovich <[email protected]>
8
 * @link      https://github.com/console-helpers/db-migration
9
 */
10
11
namespace ConsoleHelpers\DatabaseMigration;
12
13
14
abstract class AbstractMigrationRunner
15
{
16
17
	/**
18
	 * Returns supported file extension.
19
	 *
20
	 * @return string
21
	 */
22
	abstract public function getFileExtension();
23
24
	/**
25
	 * Runs the migration.
26
	 *
27
	 * @param string           $migration_file Migration file.
28
	 * @param MigrationContext $context        Migration context.
29
	 *
30
	 * @return void
31
	 */
32
	abstract public function run($migration_file, MigrationContext $context);
33
34
	/**
35
	 * Returns new migration template.
36
	 *
37
	 * @return string
38
	 */
39 1
	public function getTemplate()
40
	{
41 1
		return '';
42
	}
43
44
}
45