Annotations example


        $pos = $this->findInitialTokenPosition($input);
        if ($pos === null) {
            return [];
        }

        $this->context = $context;

        $this->lexer->setInput(trim(substr($input$pos), '* /'));
        $this->lexer->moveNext();

        return $this->Annotations();
    }

    /** * Finds the first valid annotation * * @param string $input The docblock string to parse */
    private function findInitialTokenPosition($input): ?int
    {
        $pos = 0;

        

        $pos = $this->findInitialTokenPosition($input);
        if ($pos === null) {
            return array();
        }

        $this->context = $context;

        $this->lexer->setInput(trim(substr($input$pos), '* /'));
        $this->lexer->moveNext();

        return $this->Annotations();
    }

    /** * Finds the first valid annotation * * @param string $input The docblock string to parse * * @return int|null */
    private function findInitialTokenPosition($input)
    {
        
Home | Imprint | This part of the site doesn't use cookies.