public function createLexerConfig()
    {

        // initialize the lexer configuration
        $config = new LexerConfig();

        // query whether or not a delimiter character has been configured
        if ($delimiter = $this->configuration->getDelimiter()) {
            $config->setDelimiter($delimiter);
        }

        // query whether or not a custom escape character has been configured
        if ($escape = $this->configuration->getEscape()) {
            $config->setEscape($escape);
        }

        // query whether or not a custom enclosure character has been configured
        if ($enclosure = $this->configuration->getEnclosure()) {
            $config->setEnclosure($enclosure);
        }

        // query whether or not a custom source charset has been configured
        if ($fromCharset = $this->configuration->getFromCharset()) {
            $config->setFromCharset($fromCharset);
        }

        // query whether or not a custom target charset has been configured
        if ($toCharset = $this->configuration->getToCharset()) {
            $config->setToCharset($toCharset);
        }

        // return the lexer configuratio
        return $config;
    }
public function createLexerConfig()
    {

        // initialize the lexer configuration
        $config = new LexerConfig();

        // query whether or not a delimiter character has been configured
        if ($delimiter = $this->configuration->getDelimiter()) {
            $config->setDelimiter($delimiter);
        }

        // query whether or not a custom escape character has been configured
        if ($escape = $this->configuration->getEscape()) {
            $config->setEscape($escape);
        }

        // query whether or not a custom enclosure character has been configured
        if ($enclosure = $this->configuration->getEnclosure()) {
            $config->setEnclosure($enclosure);
        }

        // query whether or not a custom source charset has been configured
        if ($fromCharset = $this->configuration->getFromCharset()) {
            $config->setFromCharset($fromCharset);
        }

        // query whether or not a custom target charset has been configured
        if ($toCharset = $this->configuration->getToCharset()) {
            $config->setToCharset($toCharset);
        }

        // return the lexer configuratio
        return $config;
    }
public function createLexerConfig ( ) { // initialize the lexer configuration $ config = new LexerConfig ( ) ; // query whether or not a delimiter character has been configured if ( $ delimiter = $ this -> configuration -> getDelimiter ( ) ) { $ config -> setDelimiter ( $ delimiter ) ; } // query whether or not a custom escape character has been configured if ( $ escape = $ this -> configuration -> getEscape ( ) ) { $ config -> setEscape ( $ escape ) ; } // query whether or not a custom enclosure character has been configured if ( $ enclosure = $ this -> configuration -> getEnclosure ( ) ) { $ config -> setEnclosure ( $ enclosure ) ; } // query whether or not a custom source charset has been configured if ( $ fromCharset = $ this -> configuration -> getFromCharset ( ) ) { $ config -> setFromCharset ( $ fromCharset ) ; } // query whether or not a custom target charset has been configured if ( $ toCharset = $ this -> configuration -> getToCharset ( ) ) { $ config -> setToCharset ( $ toCharset ) ; } // return the lexer configuratio return $ config ; }
Factory method to create a new lexer configuration instance.

@return \Goodby\CSV\Import\Standard\LexerConfig The lexer configuration
Factory method to create a new lexer configuration instance .