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

AbstractMatcher::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
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
abstract class AbstractMatcher
10
{
11
    /**
12
     * @var array
13
     */
14
    protected $arguments = [];
15
16 51
    public function __construct()
17
    {
18 51
        $this->arguments = func_get_args();
19 51
    }
20
21
    /**
22
     * @param \ReflectionClass $class
23
     * @param array            $arguments
24
     *
25
     * @return bool
26
     */
27
    abstract public function matchesClass(\ReflectionClass $class, array $arguments);
28
29
    /**
30
     * @param \ReflectionMethod $method
31
     * @param array             $arguments
32
     *
33
     * @return bool
34
     */
35
    abstract public function matchesMethod(\ReflectionMethod $method, array $arguments);
36
37
    /**
38
     * Return matching condition arguments
39
     *
40
     * @return array
41
     */
42 43
    public function getArguments()
43
    {
44 43
        return $this->arguments;
45
    }
46
}
47