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
eloc 3
c 0
b 0
f 0
dl 0
loc 5
ccs 0
cts 0
cp 0
rs 10
cc 1
nc 1
nop 3
crap 2
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
    /**
19
     * @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...
20
     */
21
    public function __construct(AbstractMatcher $classMatcher, AbstractMatcher $methodMatcher, array $interceptors)
22
    {
23
        $this->classMatcher = $classMatcher;
24
        $this->methodMatcher = $methodMatcher;
25
        $this->interceptors = $interceptors;
26
    }
27
}
28