/** * Returns the concrete type instance associated with with this placeholder. * * @return PHP_Depend_Code_AbstractClassOrInterface */ public function getType() { if ($this->typeInstance === null) { $this->typeInstance = $this->context->getClassOrInterface($this->getImage()); } return $this->typeInstance; }
/** * Returns the class or interface instance that this node instance represents. * * @return PHP_Depend_Code_AbstractClassOrInterface * @since 0.10.0 */ public function getType() { if ($this->typeInstance == null) { $this->typeInstance = $this->context->getClassOrInterface($this->qualifiedName); } return $this->typeInstance; }
/** * The magic wakeup method will be called by PHP's runtime environment when * a serialized instance of this class was unserialized. This implementation * of the wakeup method will register this object in the the global function * context. * * @return void * @since 0.10.0 */ public function __wakeup() { $this->context->registerFunction($this); }
/** * The magic wakeup method will be called by PHP's runtime environment when * a serialized instance of this class was unserialized. This implementation * of the wakeup method will register this object in the the global function * context. * * @return void * @since 0.10.0 */ public function __wakeup() { parent::__wakeup(); $this->context->registerFunction($this); }