Completed
Push — 2.x ( 7c6b9f...532295 )
by Akihito
12s queued 10s
created

Pointcut::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
crap 1
1
<?php
2
3
declare(strict_types=1);
4
/**
5
 * This file is part of the Ray.Di package.
6
 *
7
 * @license http://opensource.org/licenses/MIT MIT
8
 */
9
namespace Ray\Di;
10
11
use Ray\Aop\AbstractMatcher;
12
13
class Pointcut extends \Ray\Aop\Pointcut
14
{
15
    /**
16
     * @var string[]
17
     */
18
    public $interceptors = [];
19
20
    /**
21
     * @param AbstractMatcher $classMatcher
22
     * @param AbstractMatcher $methodMatcher
23
     * @param string[]        $interceptors  array of interceptor class name
24
     */
25 40
    public function __construct(AbstractMatcher $classMatcher, AbstractMatcher $methodMatcher, array $interceptors)
26
    {
27 40
        $this->classMatcher = $classMatcher;
28 40
        $this->methodMatcher = $methodMatcher;
29 40
        $this->interceptors = $interceptors;
30 40
    }
31
}
32