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

Pointcut   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
ccs 5
cts 5
cp 1
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
 * 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