Pointcut   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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