Completed
Push — master ( 8fe22f...34866e )
by Peter
03:54
created

ClassErrorSilencer::shouldSkip()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: peter
5
 * Date: 06.12.17
6
 * Time: 09:46
7
 */
8
9
namespace Maslosoft\Addendum\Plugins\Matcher;
10
11
12
use Maslosoft\Addendum\Interfaces\Plugins\Matcher\MatcherClassNotFoundHandlerInterface;
13
14
class ClassErrorSilencer implements MatcherClassNotFoundHandlerInterface
15
{
16
	public $classes = [];
17 1
	public function shouldSkip($className)
18
	{
19 1
		return in_array($className, $this->classes);
20
	}
21
22
}