AnnotatedMatcher   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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
    /**
13
     * @param array<int, string> $arguments
14
     */
15 3
    public function __construct(string $matcherName, array $arguments)
16
    {
17 3
        parent::__construct($matcherName, $arguments);
18 3
        $this->annotation = $arguments[0];
19 3
    }
20
}
21