Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Move ReaderCommonOptions class to Common folder (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrilo committed Oct 18, 2016
1 parent a19231f commit 3a330de
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/Spout/Reader/AbstractReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ abstract class AbstractReader implements ReaderInterface
/** @var \Box\Spout\Common\Helper\GlobalFunctionsHelper Helper to work with global functions */
protected $globalFunctionsHelper;

/** @var \Box\Spout\Reader\ReaderOptionsCommon Reader's customized options */
/** @var \Box\Spout\Reader\Common\ReaderOptions Reader's customized options */
protected $options;

/**
* Returns the reader's current options
*
* @return \Box\Spout\Reader\ReaderOptionsCommon
* @return \Box\Spout\Reader\Common\ReaderOptions
*/
abstract protected function getOptions();

Expand Down
3 changes: 1 addition & 2 deletions src/Spout/Reader/CSV/ReaderOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
namespace Box\Spout\Reader\CSV;

use Box\Spout\Common\Helper\EncodingHelper;
use Box\Spout\Reader\ReaderOptionsCommon;

/**
* Class ReaderOptions
* This class is used to customize the reader's behavior
*
* @package Box\Spout\Reader\CSV
*/
class ReaderOptions extends ReaderOptionsCommon
class ReaderOptions extends \Box\Spout\Reader\Common\ReaderOptions
{
/** @var string Defines the character used to delimit fields (one character only) */
protected $fieldDelimiter = ',';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Box\Spout\Reader;
namespace Box\Spout\Reader\Common;

/**
* Class ReaderOptionsCommon
* Class ReaderOptions
* Readers' common options
*
* @package Box\Spout\Reader
* @package Box\Spout\Reader\Common
*/
class ReaderOptionsCommon
class ReaderOptions
{
/** @var bool Whether date/time values should be returned as PHP objects or be formatted as strings */
protected $shouldFormatDates = false;
Expand All @@ -28,7 +28,7 @@ public function shouldFormatDates()
* Sets whether date/time values should be returned as PHP objects or be formatted as strings.
*
* @param bool $shouldFormatDates
* @return ReaderOptionsCommon
* @return ReaderOptions
*/
public function setShouldFormatDates($shouldFormatDates)
{
Expand All @@ -48,7 +48,7 @@ public function shouldPreserveEmptyRows()
* Sets whether empty rows should be returned or skipped.
*
* @param bool $shouldPreserveEmptyRows
* @return ReaderOptionsCommon
* @return ReaderOptions
*/
public function setShouldPreserveEmptyRows($shouldPreserveEmptyRows)
{
Expand Down
4 changes: 1 addition & 3 deletions src/Spout/Reader/ODS/ReaderOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

namespace Box\Spout\Reader\ODS;

use Box\Spout\Reader\ReaderOptionsCommon;

/**
* Class ReaderOptions
* This class is used to customize the reader's behavior
*
* @package Box\Spout\Reader\ODS
*/
class ReaderOptions extends ReaderOptionsCommon
class ReaderOptions extends \Box\Spout\Reader\Common\ReaderOptions
{
// No extra options
}
4 changes: 1 addition & 3 deletions src/Spout/Reader/XLSX/ReaderOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

namespace Box\Spout\Reader\XLSX;

use Box\Spout\Reader\ReaderOptionsCommon;

/**
* Class ReaderOptions
* This class is used to customize the reader's behavior
*
* @package Box\Spout\Reader\XLSX
*/
class ReaderOptions extends ReaderOptionsCommon
class ReaderOptions extends \Box\Spout\Reader\Common\ReaderOptions
{
/** @var string|null Temporary folder where the temporary files will be created */
protected $tempFolder = null;
Expand Down

0 comments on commit 3a330de

Please sign in to comment.