Pointcut::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 3
dl 0
loc 5
ccs 0
cts 0
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Aop;
6
7
class Pointcut
8
{
9
    /** @var AbstractMatcher */
10
    public $classMatcher;
11
12
    /** @var AbstractMatcher */
13
    public $methodMatcher;
14
15
    /** @var array<MethodInterceptor|class-string<MethodInterceptor>> */
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<MethodInterceptor|...ing<MethodInterceptor>> at position 4 could not be parsed: Unknown type name 'class-string' at position 4 in array<MethodInterceptor|class-string<MethodInterceptor>>.
Loading history...
16
    public $interceptors = [];
17
18
    /** @param array<MethodInterceptor|class-string<MethodInterceptor>> $interceptors */
0 ignored issues
show
Documentation Bug introduced by
The doc comment array<MethodInterceptor|...ing<MethodInterceptor>> at position 4 could not be parsed: Unknown type name 'class-string' at position 4 in array<MethodInterceptor|class-string<MethodInterceptor>>.
Loading history...
19
    public function __construct(AbstractMatcher $classMatcher, AbstractMatcher $methodMatcher, array $interceptors)
20
    {
21
        $this->classMatcher = $classMatcher;
22
        $this->methodMatcher = $methodMatcher;
23
        $this->interceptors = $interceptors;
24
    }
25
}
26