AfterInterceptor   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A invoke() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
/*
5
 * Go! AOP framework
6
 *
7
 * @copyright Copyright 2011, 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\Framework;
14
15
use Go\Aop\AdviceAfter;
16
use Go\Aop\Intercept\Joinpoint;
17
18
/**
19
 * "After" interceptor
20
 *
21
 * @api
22
 */
23
final class AfterInterceptor extends AbstractInterceptor implements AdviceAfter
24
{
25
    /**
26
     * @inheritdoc
27 3
     */
28
    public function invoke(Joinpoint $joinpoint)
29
    {
30 3
        try {
31
            return $joinpoint->proceed();
32 3
        } finally {
33
            ($this->adviceMethod)($joinpoint);
34
        }
35
    }
36
}
37