Пример #1
0
    /**
     * Retrieve method docblock reflection
     *
     * @return DocBlockReflection
     */
    public function getDocBlock()
    {
        if ('' == $this->getDocComment()) {
            return false;
            //throw new Exception\InvalidArgumentException($this->getName() . ' does not have a DocComment');
        }

        $instance = new DocBlockReflection($this);
        if ($this->annotationManager) {
            $instance->setAnnotationManager($this->annotationManager);
        }
        return $instance;
    }