Completed
Push — master ( 5294dc...c896df )
by T
04:42
created

ClassMethodRemoved::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 8
loc 8
ccs 7
cts 7
cp 1
rs 9.4285
cc 1
eloc 6
nc 1
nop 4
crap 1
1
<?php
2
3
namespace PHPSemVerChecker\Operation;
4
5
use PhpParser\Node\Stmt;
6
use PhpParser\Node\Stmt\ClassMethod;
7
use PHPSemVerChecker\Node\Statement\ClassMethod as PClassMethod;
8
9
class ClassMethodRemoved extends ClassMethodOperationUnary {
10
	/**
11
	 * @var array
12
	 */
13
	protected $code = [
14
		'class'     => ['V006', 'V007', 'V029'],
15
		'interface' => ['V035'],
16
		'trait'     => ['V038', 'V039', 'V058'],
17
	];
18
	/**
19
	 * @var string
20
	 */
21
	protected $reason = 'Method has been removed.';
22
}
23