| 1 | <?php |
||
| 11 | class ReaderOptions |
||
| 12 | { |
||
| 13 | |||
| 14 | /** @var bool Whether date/time values should be returned as PHP objects or be formatted as strings */ |
||
| 15 | protected $shouldFormatDates = false; |
||
| 16 | |||
| 17 | /** @var bool Whether to skip "empty" rows. The exact definition of empty may depend on the reader implementation. */ |
||
| 18 | protected $shouldPreserveEmptyRows = false; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Sets whether date/time values should be returned as PHP objects or be formatted as strings. |
||
| 22 | * |
||
| 23 | * @param bool $shouldFormatDates |
||
| 24 | * @return ReaderOptions |
||
| 25 | */ |
||
| 26 | 6 | public function setShouldFormatDates($shouldFormatDates) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Sets whether to skip or return "empty" rows. |
||
| 34 | * |
||
| 35 | * @param bool $shouldPreserveEmptyRows |
||
| 36 | * @return ReaderOptions |
||
| 37 | */ |
||
| 38 | 18 | public function setShouldPreserveEmptyRows($shouldPreserveEmptyRows) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @see setShouldFormatDates |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | 174 | public function shouldFormatDates() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @see setShouldPreserveEmptyRows |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | 108 | public function shouldPreserveEmptyRows() |
|
| 61 | |||
| 62 | } |
||
| 63 |