Xpressengine\Interception\Proxy\Definition::getCode PHP Method

getCode() public method

프록시 클래스의 코드를 조회한다.
public getCode ( ) : string
return string
    public function getCode()
    {
        return $this->code;
    }

Usage Example

Example #1
0
 /**
  * 주어진 프록시 클래스 명세를 eval()을 사용하여 로드한다.
  *
  * @param Definition $definition 동적으로 생성할 프록시 클래스에 대한 명세
  *
  * @return void
  */
 public function load(Definition $definition)
 {
     if (class_exists($definition->getClassName(), false)) {
         return;
     }
     eval("?>" . $definition->getCode());
 }
All Usage Examples Of Xpressengine\Interception\Proxy\Definition::getCode