Example #1
0
 /**
  * Returns the source file where this method was declared.
  *
  * @return PHP_Depend_Code_File
  * @throws PHP_Depend_Code_Exceptions_SourceNotFoundException When no parent
  *         class or interface was set for this method instance.
  * @since 0.10.0
  */
 public function getSourceFile()
 {
     if ($this->parent === null) {
         throw new PHP_Depend_Code_Exceptions_SourceNotFoundException($this);
     }
     return $this->parent->getSourceFile();
 }