DeclareParentsAdvisor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types = 1);
4
/*
5
 * Go! AOP framework
6
 *
7
 * @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
8
 *
9
 * This source file is subject to the license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Go\Aop\Support;
14
15
use Go\Aop\IntroductionAdvisor;
16
use Go\Aop\IntroductionInfo;
17
use Go\Aop\Pointcut;
18
use Go\Aop\Pointcut\PointcutClassFilterTrait;
19
20
/**
21
 * Introduction advisor delegating to the given object.
22
 */
23
class DeclareParentsAdvisor extends AbstractGenericAdvisor implements IntroductionAdvisor
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: getAdvice, getClassFilter
Loading history...
24
{
25
    use PointcutClassFilterTrait;
26
27
    /**
28
     * Creates an advisor for declaring mixins via trait and interface.
29
     */
30
    public function __construct(Pointcut $pointcut, IntroductionInfo $info)
31
    {
32
        $this->classFilter = $pointcut->getClassFilter();
33
        parent::__construct($info);
34
    }
35
}
36