AnnotatedMatcher   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 4
c 1
b 1
f 0
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Aop;
6
7
final class AnnotatedMatcher extends BuiltinMatcher
8
{
9
    /** @var string */
10
    public $annotation;
11
12
    /** @param array<int, string> $arguments */
13
    public function __construct(string $matcherName, array $arguments)
14
    {
15 3
        parent::__construct($matcherName, $arguments);
16
17 3
        $this->annotation = $arguments[0];
18 3
    }
19
}
20