AnnotatedMatcher::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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