Completed
Push — 1.x ( 05b51a...3e127b )
by Alexander
04:13
created

AbstractInvocation::setArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
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
    /**
39
     * Sets the arguments for current invocation
40
     *
41
     * @param array $arguments New list of arguments
42
     */
43
    public function setArguments(array $arguments)
44
    {
45
        $this->arguments = $arguments;
46
    }
47
}
48