src/Documentation.php
public function getMethodDocumentation(\ReflectionMethod $method)
    {
        $comment = $this->getMethodComment($method);

        $summary     = $this->getSummary($comment);
        $parameters  = $this->getParameters($comment);
        $returnType  = $this->getReturnType($comment);

        $documentation = [];
        if ($summary) {
            $documentation['summary'] = $summary;
            // If there is no Summary, there CAN NOT be a Description
            $description = $this->getDescription($comment);
            if ($description) {
                $documentation['description'] = $description;
            }
        }

        // These should always show even if they're empty
        $documentation['parameters'] = $parameters;
        $documentation['returnType'] = $returnType;

        return $documentation;
    }
public function getMethodDocumentation(\ReflectionMethod $method)
    {
        $comment = $this->getMethodComment($method);

        $summary     = $this->getSummary($comment);
        $parameters  = $this->getParameters($comment);
        $returnType  = $this->getReturnType($comment);

        $documentation = [];
        if ($summary) {
            $documentation['summary'] = $summary;
            // If there is no Summary, there CAN NOT be a Description
            $description = $this->getDescription($comment);
            if ($description) {
                $documentation['description'] = $description;
            }
        }

        // These should always show even if they're empty
        $documentation['parameters'] = $parameters;
        $documentation['returnType'] = $returnType;

        return $documentation;
    }
Breaks the doc block of the given method into its component parts

Takes a Reflection method and returns an array containing the summary,
and description (if they exist), as well as parameters and return type.

@param \ReflectionMethod $method
@return array