@@ -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 | { |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | /** |
| 333 | 333 | * @param Time $time |
| 334 | 334 | * |
| 335 | - * @return TimeRange[] |
|
| 335 | + * @return Generator |
|
| 336 | 336 | */ |
| 337 | 337 | public function forTime(Time $time): Generator |
| 338 | 338 | { |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | /** |
| 349 | 349 | * @param Time $time |
| 350 | 350 | * |
| 351 | - * @return TimeRange[] |
|
| 351 | + * @return Generator |
|
| 352 | 352 | */ |
| 353 | 353 | public function forNightTime(Time $time): Generator |
| 354 | 354 | { |
@@ -2,15 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\OpeningHours; |
| 4 | 4 | |
| 5 | -use Countable; |
|
| 6 | -use Generator; |
|
| 7 | 5 | use ArrayAccess; |
| 8 | 6 | use ArrayIterator; |
| 7 | +use Countable; |
|
| 8 | +use Generator; |
|
| 9 | 9 | use IteratorAggregate; |
| 10 | -use Spatie\OpeningHours\Helpers\Arr; |
|
| 11 | -use Spatie\OpeningHours\Helpers\DataTrait; |
|
| 12 | 10 | use Spatie\OpeningHours\Exceptions\NonMutableOffsets; |
| 13 | 11 | use Spatie\OpeningHours\Exceptions\OverlappingTimeRanges; |
| 12 | +use Spatie\OpeningHours\Helpers\Arr; |
|
| 13 | +use Spatie\OpeningHours\Helpers\DataTrait; |
|
| 14 | 14 | |
| 15 | 15 | class OpeningHoursForDay implements ArrayAccess, Countable, IteratorAggregate |
| 16 | 16 | { |