Failed Conditions
Push — master ( a2f8a2...e02dc1 )
by Alexander
01:53
created

ConstantChecker   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A check() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Code-Insight 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/code-insight
9
 */
10
11
namespace ConsoleHelpers\CodeInsight\BackwardsCompatibility;
12
13
14
use Aura\Sql\ExtendedPdoInterface;
15
16
class ConstantChecker extends AbstractChecker
17
{
18
19
	/**
20
	 * Returns backwards compatibility checker name.
21
	 *
22
	 * @return string
23
	 */
24
	public function getName()
25
	{
26
		return 'constant';
27
	}
28
29
	/**
30
	 * Checks backwards compatibility and returns violations by category.
31
	 *
32
	 * @param ExtendedPdoInterface $source_db Source DB.
33
	 * @param ExtendedPdoInterface $target_db Target DB.
34
	 *
35
	 * @return array
36
	 */
37
	public function check(ExtendedPdoInterface $source_db, ExtendedPdoInterface $target_db)
38
	{
39
		return array();
40
	}
41
42
}
43