/**
  * Returns the concrete type instance associated with with this placeholder.
  *
  * @return \PDepend\Source\AST\AbstractASTClassOrInterface
  */
 public function getType()
 {
     if ($this->typeInstance === null) {
         $this->typeInstance = $this->context->getClassOrInterface($this->getImage());
     }
     return $this->typeInstance;
 }
Example #2
0
 /**
  * Returns the class or interface instance that this node instance represents.
  *
  * @return \PDepend\Source\AST\AbstractASTClassOrInterface
  * @since  0.10.0
  */
 public function getType()
 {
     if ($this->typeInstance == null) {
         $this->typeInstance = $this->context->getClassOrInterface($this->qualifiedName);
     }
     return $this->typeInstance;
 }