for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Go! AOP framework
*
* @copyright Copyright 2011, Lisachenko Alexander <[email protected]>
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
namespace Go\Aop\Framework;
use Go\Aop\AdviceAround;
use Go\Aop\Intercept\Joinpoint;
/**
* "Around" interceptor
* @api
final class AroundInterceptor extends BaseInterceptor implements AdviceAround
{
* Around invoker
* @param Joinpoint $joinpoint the concrete joinpoint
* @return mixed the result of the call to {@link Joinpoint::proceed()}
public function invoke(Joinpoint $joinpoint)
$adviceMethod = $this->adviceMethod;
return $adviceMethod($joinpoint);
}