MethodSuffixInterceptors   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator;
6
7
use Laminas\Code\Generator\Exception\InvalidArgumentException;
8
use Laminas\Code\Generator\PropertyGenerator;
9
use ProxyManager\Generator\Util\IdentifierSuffixer;
10
11
/**
12
 * Property that contains the interceptor for operations to be executed after method execution
13
 */
14
class MethodSuffixInterceptors extends PropertyGenerator
15
{
16
    /**
17
     * Constructor
18
     *
19
     * @throws InvalidArgumentException
20
     */
21
    public function __construct()
22 1
    {
23
        parent::__construct(IdentifierSuffixer::getIdentifier('methodSuffixInterceptors'));
24 1
25
        $this->setDefaultValue([]);
26 1
        $this->setVisibility(self::VISIBILITY_PRIVATE);
27 1
        $this->setDocBlock('@var \\Closure[] map of interceptors to be called per-method after execution');
28 1
    }
29
}
30