File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,11 @@ namespace App\Integrations\MagentoStock;
126
126
127
127
use JustBetter\MagentoStock\Repositories\Repository;
128
128
use Illuminate\Support\Carbon;
129
- use Illuminate\Support\Collection ;
129
+ use Illuminate\Support\Enumerable ;
130
130
131
131
class MyStockRepository extends Repository
132
132
{
133
- public function skus(?Carbon $from = null): ?Collection
133
+ public function skus(?Carbon $from = null): ?Enumerable
134
134
{
135
135
return collect(['sku_1', 'sku_2']);
136
136
}
Original file line number Diff line number Diff line change 3
3
namespace JustBetter \MagentoStock \Repositories ;
4
4
5
5
use Illuminate \Support \Carbon ;
6
- use Illuminate \Support \Collection ;
6
+ use Illuminate \Support \Enumerable ;
7
7
use JustBetter \MagentoStock \Data \StockData ;
8
8
9
9
abstract class BaseRepository
@@ -63,8 +63,8 @@ public static function resolve(): BaseRepository
63
63
return $ instance ;
64
64
}
65
65
66
- /** @return Collection <int, string> */
67
- abstract public function skus (?Carbon $ from = null ): Collection ;
66
+ /** @return Enumerable <int, string> */
67
+ abstract public function skus (?Carbon $ from = null ): Enumerable ;
68
68
69
69
abstract public function retrieve (string $ sku ): ?StockData ;
70
70
}
Original file line number Diff line number Diff line change 3
3
namespace JustBetter \MagentoStock \Repositories ;
4
4
5
5
use Illuminate \Support \Carbon ;
6
- use Illuminate \Support \Collection ;
6
+ use Illuminate \Support \Enumerable ;
7
7
use JustBetter \MagentoProducts \Models \MagentoProduct ;
8
8
use JustBetter \MagentoStock \Data \StockData ;
9
9
use JustBetter \MagentoStock \Exceptions \NotImplementedException ;
@@ -15,9 +15,9 @@ public function retrieve(string $sku): ?StockData
15
15
throw new NotImplementedException ;
16
16
}
17
17
18
- public function skus (?Carbon $ from = null ): Collection
18
+ public function skus (?Carbon $ from = null ): Enumerable
19
19
{
20
- /** @var Collection <int, string> $skus */
20
+ /** @var Enumerable <int, string> $skus */
21
21
$ skus = MagentoProduct::query ()
22
22
->where ('exists_in_magento ' , '= ' , true )
23
23
->select (['sku ' ])
You can’t perform that action at this time.
0 commit comments