@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\OpeningHours; |
| 4 | 4 | |
| 5 | -use Countable; |
|
| 6 | 5 | use ArrayAccess; |
| 7 | 6 | use ArrayIterator; |
| 7 | +use Countable; |
|
| 8 | 8 | use IteratorAggregate; |
| 9 | -use Spatie\OpeningHours\Helpers\Arr; |
|
| 10 | 9 | use Spatie\OpeningHours\Exceptions\OverlappingTimeRanges; |
| 10 | +use Spatie\OpeningHours\Helpers\Arr; |
|
| 11 | 11 | |
| 12 | 12 | class OpeningHoursForDay implements ArrayAccess, Countable, IteratorAggregate |
| 13 | 13 | { |
@@ -219,6 +219,9 @@ |
||
| 219 | 219 | return $day; |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | + /** |
|
| 223 | + * @return DateTimeInterface |
|
| 224 | + */ |
|
| 222 | 225 | protected function applyTimezone(DateTimeInterface $date) |
| 223 | 226 | { |
| 224 | 227 | if ($this->timezone) { |
@@ -3,12 +3,12 @@ |
||
| 3 | 3 | namespace Spatie\OpeningHours; |
| 4 | 4 | |
| 5 | 5 | use DateTime; |
| 6 | -use DateTimeZone; |
|
| 7 | 6 | use DateTimeInterface; |
| 8 | -use Spatie\OpeningHours\Helpers\Arr; |
|
| 7 | +use DateTimeZone; |
|
| 9 | 8 | use Spatie\OpeningHours\Exceptions\Exception; |
| 10 | 9 | use Spatie\OpeningHours\Exceptions\InvalidDate; |
| 11 | 10 | use Spatie\OpeningHours\Exceptions\InvalidDayName; |
| 11 | +use Spatie\OpeningHours\Helpers\Arr; |
|
| 12 | 12 | |
| 13 | 13 | class OpeningHours |
| 14 | 14 | { |