Go\Aop\Framework\BaseInterceptor::getRawAdvice PHP Méthode

getRawAdvice() public méthode

Getter for extracting the advice closure from Interceptor
public getRawAdvice ( ) : callable | null
Résultat 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());
 }