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

PriorityPointcut::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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