public function getStaticReflectionParserForDeclaringClass($type, $name)
    {
        $this->parse();
        if (isset($this->docComment[$type][$name])) {
            return $this;
        }
        if (! empty($this->parentClassName)) {
            return $this->getParentStaticReflectionParser()->getStaticReflectionParserForDeclaringClass($type, $name);
        }
        throw new ReflectionException('Invalid ' . $type . ' "' . $name . '"');
    }
public function getStaticReflectionParserForDeclaringClass($type, $name)
    {
        $this->parse();
        if (isset($this->docComment[$type][$name])) {
            return $this;
        }
        if (! empty($this->parentClassName)) {
            return $this->getParentStaticReflectionParser()->getStaticReflectionParserForDeclaringClass($type, $name);
        }
        throw new ReflectionException('Invalid ' . $type . ' "' . $name . '"');
    }
public function getStaticReflectionParserForDeclaringClass ( $ type , $ name ) { $ this -> parse ( ) ; if ( isset ( $ this -> docComment [ $ type ] [ $ name ] ) ) { return $ this ; } if ( ! empty ( $ this -> parentClassName ) ) { return $ this -> getParentStaticReflectionParser ( ) -> getStaticReflectionParserForDeclaringClass ( $ type , $ name ) ; } throw new ReflectionException ( 'Invalid ' . $ type . ' "' . $ name . '"' ) ; }
Gets the PSR-0 parser for the declaring class.

@param string $type The type: 'property' or 'method'.
@param string $name The name of the property or method.

@return StaticReflectionParser A static reflection parser for the declaring class.

@throws ReflectionException
Gets the PSR - 0 parser for the declaring class .