Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class PhpNativeClassesMatcher implements Matchable |
||
11 | { |
||
12 | /** |
||
13 | * @var string[] |
||
14 | */ |
||
15 | private $phpNativeClassNames; |
||
16 | |||
17 | public function __construct(array $phpNativeClassNames) |
||
18 | { |
||
19 | $this->phpNativeClassNames = $phpNativeClassNames; |
||
20 | } |
||
21 | |||
22 | public function isMatch(FQSEN $target): bool |
||
23 | { |
||
24 | return in_array($target->toString(), $this->phpNativeClassNames); |
||
25 | } |
||
26 | |||
27 | public function getPattern(): string |
||
30 | } |
||
31 | } |
||
32 |