Completed
Push — 1.x ( c183a4...05b51a )
by Alexander
8s
created

AbstractInvocation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getArguments() 0 4 1
1
<?php
2
/*
3
 * Go! AOP framework
4
 *
5
 * @copyright Copyright 2011, Lisachenko Alexander <[email protected]>
6
 *
7
 * This source file is subject to the license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Go\Aop\Framework;
12
13
use Go\Aop\Intercept\Invocation;
14
15
/**
16
 * Abstract class for all invocations joinpoints
17
 */
18
abstract class AbstractInvocation extends AbstractJoinpoint implements Invocation
19
{
20
    /**
21
     * Arguments for invocation
22
     *
23
     * @var array
24
     */
25
    protected $arguments = [];
26
27
    /**
28
     * Get the arguments as an array object.
29
     * It is possible to change element values within this array to change the arguments
30
     *
31
     * @return array the arguments of the invocation
32
     */
33
    public function getArguments()
34
    {
35
        return $this->arguments;
36
    }
37
}
38