Completed
Push — master ( f22ae4...0f9bab )
by Alexander
01:55
created

DeclareParentsAdvisor::validateInterfaces()   B

Complexity

Conditions 5
Paths 5

Size

Total Lines 17
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 30

Importance

Changes 0
Metric Value
dl 0
loc 17
c 0
b 0
f 0
ccs 0
cts 16
cp 0
rs 8.8571
cc 5
eloc 10
nc 5
nop 0
crap 30
1
<?php
2
declare(strict_types = 1);
3
/*
4
 * Go! AOP framework
5
 *
6
 * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
7
 *
8
 * This source file is subject to the license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Go\Aop\Support;
13
14
use Go\Aop\IntroductionAdvisor;
15
use Go\Aop\IntroductionInfo;
16
use Go\Aop\Pointcut\PointcutClassFilterTrait;
17
use Go\Aop\PointFilter;
18
19
/**
20
 * Introduction advisor delegating to the given object.
21
 */
22
class DeclareParentsAdvisor extends AbstractGenericAdvisor implements IntroductionAdvisor
23
{
24
    use PointcutClassFilterTrait;
25
26
    /**
27
     * Creates an advisor for declaring mixins via traits and interfaces.
28
     *
29
     * @param PointFilter $classFilter Class filter
30
     * @param IntroductionInfo $info Introduction information
31
     */
32
    public function __construct(PointFilter $classFilter, IntroductionInfo $info)
33
    {
34
        $this->classFilter = $classFilter;
35
        parent::__construct($info);
36
    }
37
}
38