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