AnnotatedMatcher::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 5
ccs 2
cts 2
cp 1
crap 1
rs 10
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