| 1 | <?php |
||
| 11 | class ReaderOptionsCommon |
||
| 12 | { |
||
| 13 | /** @var bool Whether date/time values should be returned as PHP objects or be formatted as strings */ |
||
| 14 | protected $shouldFormatDates = false; |
||
| 15 | |||
| 16 | /** @var bool Whether empty rows should be returned or skipped */ |
||
| 17 | protected $shouldPreserveEmptyRows = false; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return bool Whether date/time values should be returned as PHP objects or be formatted as strings. |
||
| 21 | */ |
||
| 22 | 174 | public function shouldFormatDates() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Sets whether date/time values should be returned as PHP objects or be formatted as strings. |
||
| 29 | * |
||
| 30 | * @param bool $shouldFormatDates |
||
| 31 | * @return ReaderOptionsCommon |
||
| 32 | */ |
||
| 33 | 186 | public function setShouldFormatDates($shouldFormatDates) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return bool Whether empty rows should be returned or skipped. |
||
| 41 | */ |
||
| 42 | 252 | public function shouldPreserveEmptyRows() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Sets whether empty rows should be returned or skipped. |
||
| 49 | * |
||
| 50 | * @param bool $shouldPreserveEmptyRows |
||
| 51 | * @return ReaderOptionsCommon |
||
| 52 | */ |
||
| 53 | 246 | public function setShouldPreserveEmptyRows($shouldPreserveEmptyRows) |
|
| 58 | } |
||
| 59 |