Yosymfony\Toml\Parser::getStringValue PHP Méthode

getStringValue() private méthode

private getStringValue ( $openToken )
    private function getStringValue($openToken)
    {
        $result = '';
        if (Lexer::TOKEN_STRING !== $this->lexer->getToken()->getType()) {
            throw new ParseException('Syntax error: expected string', $this->currentLine, $this->lexer->getCurrentToken()->getValue());
        }
        $result = (string) $this->lexer->getCurrentToken()->getValue();
        if ($openToken->getType() !== $this->lexer->getToken()->getType()) {
            throw new ParseException('Syntax error: expected close quotes', $this->currentLine, $this->lexer->getCurrentToken()->getValue());
        }
        return $result;
    }