Go\Aop\Framework\BaseInterceptor::getRawAdvice PHP 메소드

getRawAdvice() 공개 메소드

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

Usage Example

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