@@ -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,14 +3,14 @@ |
||
| 3 | 3 | namespace Spatie\OpeningHours; |
| 4 | 4 | |
| 5 | 5 | use DateTime; |
| 6 | -use DateTimeZone; |
|
| 7 | 6 | use DateTimeImmutable; |
| 8 | 7 | use DateTimeInterface; |
| 9 | -use Spatie\OpeningHours\Helpers\Arr; |
|
| 10 | -use Spatie\OpeningHours\Helpers\DataTrait; |
|
| 8 | +use DateTimeZone; |
|
| 11 | 9 | use Spatie\OpeningHours\Exceptions\Exception; |
| 12 | 10 | use Spatie\OpeningHours\Exceptions\InvalidDate; |
| 13 | 11 | use Spatie\OpeningHours\Exceptions\InvalidDayName; |
| 12 | +use Spatie\OpeningHours\Helpers\Arr; |
|
| 13 | +use Spatie\OpeningHours\Helpers\DataTrait; |
|
| 14 | 14 | |
| 15 | 15 | class OpeningHours |
| 16 | 16 | { |
@@ -2,14 +2,14 @@ |
||
| 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 | -use Spatie\OpeningHours\Helpers\DataTrait; |
|
| 11 | 9 | use Spatie\OpeningHours\Exceptions\NonMutableOffsets; |
| 12 | 10 | use Spatie\OpeningHours\Exceptions\OverlappingTimeRanges; |
| 11 | +use Spatie\OpeningHours\Helpers\Arr; |
|
| 12 | +use Spatie\OpeningHours\Helpers\DataTrait; |
|
| 13 | 13 | |
| 14 | 14 | class OpeningHoursForDay implements ArrayAccess, Countable, IteratorAggregate |
| 15 | 15 | { |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\OpeningHours; |
| 4 | 4 | |
| 5 | -use Spatie\OpeningHours\Helpers\DataTrait; |
|
| 6 | -use Spatie\OpeningHours\Exceptions\InvalidTimeRangeList; |
|
| 7 | 5 | use Spatie\OpeningHours\Exceptions\InvalidTimeRangeArray; |
| 6 | +use Spatie\OpeningHours\Exceptions\InvalidTimeRangeList; |
|
| 8 | 7 | use Spatie\OpeningHours\Exceptions\InvalidTimeRangeString; |
| 8 | +use Spatie\OpeningHours\Helpers\DataTrait; |
|
| 9 | 9 | |
| 10 | 10 | class TimeRange |
| 11 | 11 | { |