Inheritance: extends Box\Spout\Reader\Common\ReaderOptions
Esempio n. 1
0
 /**
  * @param resource $filePointer Pointer to the CSV file to read
  * @param \Box\Spout\Reader\CSV\ReaderOptions $options
  * @param \Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper
  */
 public function __construct($filePointer, $options, $globalFunctionsHelper)
 {
     $this->filePointer = $filePointer;
     $this->fieldDelimiter = $options->getFieldDelimiter();
     $this->fieldEnclosure = $options->getFieldEnclosure();
     $this->encoding = $options->getEncoding();
     $this->inputEOLDelimiter = $options->getEndOfLineCharacter();
     $this->shouldPreserveEmptyRows = $options->shouldPreserveEmptyRows();
     $this->globalFunctionsHelper = $globalFunctionsHelper;
     $this->encodingHelper = new EncodingHelper($globalFunctionsHelper);
 }