yii\console\Controller::parseDocCommentSummary PHP Method

parseDocCommentSummary() protected method

Returns the first line of docblock.
protected parseDocCommentSummary ( Reflector $reflection ) : string
$reflection Reflector
return string
    protected function parseDocCommentSummary($reflection)
    {
        $docLines = preg_split('~\\R~u', $reflection->getDocComment());
        if (isset($docLines[1])) {
            return trim($docLines[1], "\t *");
        }
        return '';
    }