private function extractDesc(array $arguments): ?string
    {
        if (!empty($arguments)) {
            foreach ($arguments[self::ID_ARG]->getLeadingComments() as $comment) {
                $annotations = $this->docParser->parse($comment->getText());
                if (!empty($annotations)) {
                    return $annotations[0]->text;
                }
            }
        }

        return null;
    }
private function extractDesc(array $arguments): ?string
    {
        if (!empty($arguments)) {
            foreach ($arguments[self::ID_ARG]->getLeadingComments() as $comment) {
                $annotations = $this->docParser->parse($comment->getText());
                if (!empty($annotations)) {
                    return $annotations[0]->text;
                }
            }
        }

        return null;
    }
private function extractDesc ( array $ arguments ) : ? string { if ( ! empty ( $ arguments ) ) { foreach ( $ arguments [ self :: ID_ARG ] -> getLeadingComments ( ) as $ comment ) { $ annotations = $ this -> docParser -> parse ( $ comment -> getText ( ) ) ; if ( ! empty ( $ annotations ) ) { return $ annotations [ 0 ] -> text ; } } } return null ; }
Extracts a message description from the translator call.

@param \Peast\Syntax\Node\Expression[] $arguments

@return string|null
Extracts a message description from the translator call .