Go\Aop\Framework\BaseInterceptor::getRawAdvice PHP Method

getRawAdvice() public method

Getter for extracting the advice closure from Interceptor
public getRawAdvice ( ) : callable | null
return callable | null
    public function getRawAdvice()
    {
        return $this->adviceMethod;
    }

Usage Example

 public function testReturnsRawAdvice()
 {
     $sequence = array();
     $advice = $this->getAdvice($sequence);
     $interceptor = new BaseInterceptor($advice);
     $this->assertEquals($advice, $interceptor->getRawAdvice());
 }