public function consumeClosingParenthesisToken(): void
    {
        if ($this->currentAnnotationContent !== null && $this->openedStringToken === null) {
            // We are in an annotation content and not in a string.
            if ($this->openedParenthesis > 0) {
                $this->openedParenthesis--;
                if ($this->openedParenthesis === 0) {
                    // Annotation content is finished.
                    $this->currentAnnotation->setStringContent(substr(
                        $this->currentAnnotationContent,
                        1,
                        strlen($this->currentAnnotationContent) - 2
                    ));
                    $this->parsedAnnotations[] = $this->currentAnnotation;
                    $this->reset();
                }
            }
        }
    }
public function consumeClosingParenthesisToken(): void
    {
        if ($this->currentAnnotationContent !== null && $this->openedStringToken === null) {
            // We are in an annotation content and not in a string.
            if ($this->openedParenthesis > 0) {
                $this->openedParenthesis--;
                if ($this->openedParenthesis === 0) {
                    // Annotation content is finished.
                    $this->currentAnnotation->setStringContent(substr(
                        $this->currentAnnotationContent,
                        1,
                        strlen($this->currentAnnotationContent) - 2
                    ));
                    $this->parsedAnnotations[] = $this->currentAnnotation;
                    $this->reset();
                }
            }
        }
    }
public function consumeClosingParenthesisToken ( ) : void { if ( $ this -> currentAnnotationContent !== null && $ this -> openedStringToken === null ) { // We are in an annotation content and not in a string. if ( $ this -> openedParenthesis > 0 ) { $ this -> openedParenthesis -- ; if ( $ this -> openedParenthesis === 0 ) { // Annotation content is finished. $ this -> currentAnnotation -> setStringContent ( substr ( $ this -> currentAnnotationContent , 1 , strlen ( $ this -> currentAnnotationContent ) - 2 ) ) ; $ this -> parsedAnnotations [ ] = $ this -> currentAnnotation ; $ this -> reset ( ) ; } } } }
Consume an closing parenthesis token.
Consume an closing parenthesis token .