public function finalize(): void
    {
        if ($this->currentAnnotation !== null) {
            if ($this->currentAnnotationContent === null) {
                $this->parsedAnnotations[] = $this->currentAnnotation;
            } else {
                throw new AnnotationParseException(
                    'An annotation content is not closed (you probably forget to close a parenthesis or a quote)'
                );
            }
        }
    }
public function finalize(): void
    {
        if ($this->currentAnnotation !== null) {
            if ($this->currentAnnotationContent === null) {
                $this->parsedAnnotations[] = $this->currentAnnotation;
            } else {
                throw new AnnotationParseException(
                    'An annotation content is not closed (you probably forget to close a parenthesis or a quote)'
                );
            }
        }
    }
public function finalize ( ) : void { if ( $ this -> currentAnnotation !== null ) { if ( $ this -> currentAnnotationContent === null ) { $ this -> parsedAnnotations [ ] = $ this -> currentAnnotation ; } else { throw new AnnotationParseException ( 'An annotation content is not closed (you probably forget to close a parenthesis or a quote)' ) ; } } }
Finalize the documentation parsing process.

@throws AnnotationParseException If an annotation content is not closed.
Finalize the documentation parsing process .