Completed
Branch 2.x (867c01)
by Akihito
09:30
created

Pointcut   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 1
c 2
b 1
f 1
lcom 0
cbo 0
dl 0
loc 29
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/**
3
 * This file is part of the Ray.Aop package
4
 *
5
 * @license http://opensource.org/licenses/bsd-license.php BSD
6
 */
7
namespace Ray\Aop;
8
9
class Pointcut
10
{
11
    /**
12
     * @var AbstractMatcher
13
     */
14
    public $classMatcher;
15
16
    /**
17
     * @var AbstractMatcher
18
     */
19
    public $methodMatcher;
20
21
    /**
22
     * @var Interceptor[]
23
     */
24
    public $interceptors = [];
25
26
    /**
27
     * @param AbstractMatcher $classMatcher
28
     * @param AbstractMatcher $methodMatcher
29
     * @param Interceptor[]   $interceptors
30
     */
31 31
    public function __construct(AbstractMatcher $classMatcher, AbstractMatcher $methodMatcher, array $interceptors)
32
    {
33 31
        $this->classMatcher = $classMatcher;
34 31
        $this->methodMatcher = $methodMatcher;
35 31
        $this->interceptors = $interceptors;
36 31
    }
37
}
38