Completed
Branch 2.x (867c01)
by Akihito
09:30
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 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
crap 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