Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.x'
Browse files Browse the repository at this point in the history
* origin/1.x:
  [Invocation] Add an ability to update invocation arguments, resolves #297
  • Loading branch information
lisachenko committed Nov 2, 2016
2 parents 3b16122 + 3e127b1 commit 8a89d3a
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 8a89d3a

Please sign in to comment.