Skip to content

Commit

Permalink
Merge pull request #298 from goaop/feature/implement-set-arguments-fo…
Browse files Browse the repository at this point in the history
…r-invocation

[Invocation] Add an ability to update invocation arguments
  • Loading branch information
lisachenko authored Nov 2, 2016
2 parents 05b51a6 + 55561e8 commit 3e127b1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Aop/Framework/AbstractInvocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,14 @@ public function getArguments()
{
return $this->arguments;
}

/**
* Sets the arguments for current invocation
*
* @param array $arguments New list of arguments
*/
public function setArguments(array $arguments)
{
$this->arguments = $arguments;
}
}
7 changes: 7 additions & 0 deletions src/Aop/Intercept/Invocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ interface Invocation extends Joinpoint
* @return array the arguments of the invocation
*/
public function getArguments();

/**
* Sets the arguments for current invocation
*
* @param array $arguments New list of arguments
*/
public function setArguments(array $arguments);
}

0 comments on commit 3e127b1

Please sign in to comment.