Completed
Push — phpstan12 ( da9933...8a7f10 )
by Akihito
07:06
created

PriorityPointcut   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di;
6
7
use Ray\Aop\AbstractMatcher;
8
9
class PriorityPointcut extends \Ray\Aop\PriorityPointcut
10
{
11
    /**
12
     * @var array<class-string<\Ray\Aop\MethodInterceptor>>
13
     */
14
    public $interceptors = [];
15
16
    /**
17
     * Extend Ray\Di version PriorityPointcut
18
     *
19
     * We have extended the $interceptor parameters so that you can specify the class name as well as the object
20
     *
21
     * @param array<class-string<\Ray\Aop\MethodInterceptor>> $interceptors array of interceptor class name
0 ignored issues
show
Documentation introduced by
The doc-type array<class-string<\Ray\Aop\MethodInterceptor>> could not be parsed: Unknown type name "class-string" at position 6. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
22
     */
23
    public function __construct(AbstractMatcher $classMatcher, AbstractMatcher $methodMatcher, array $interceptors)
24
    {
25
        $this->classMatcher = $classMatcher;
26
        $this->methodMatcher = $methodMatcher;
27
        $this->interceptors = $interceptors;
28
    }
29
}
30