Refactored repositories model method
This commit is contained in:
parent
11efdc68b2
commit
0d073a2ef0
|
|
@ -30,9 +30,9 @@ class AttributeFamilyRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Attribute\Contracts\AttributeFamily';
|
return 'Webkul\Attribute\Contracts\AttributeFamily';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ class AttributeGroupRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Attribute\Contracts\AttributeGroup';
|
return 'Webkul\Attribute\Contracts\AttributeGroup';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ class AttributeOptionRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Attribute\Contracts\AttributeOption';
|
return 'Webkul\Attribute\Contracts\AttributeOption';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,12 @@ use Webkul\Core\Eloquent\Repository;
|
||||||
|
|
||||||
class AttributeOptionTranslationRepository extends Repository
|
class AttributeOptionTranslationRepository extends Repository
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Attribute\Contracts\AttributeOptionTranslation';
|
return 'Webkul\Attribute\Contracts\AttributeOptionTranslation';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@ class AttributeRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Attribute\Contracts\Attribute';
|
return 'Webkul\Attribute\Contracts\Attribute';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class BookingProductAppointmentSlotRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\BookingProduct\Contracts\BookingProductAppointmentSlot';
|
return 'Webkul\BookingProduct\Contracts\BookingProductAppointmentSlot';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class BookingProductDefaultSlotRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\BookingProduct\Contracts\BookingProductDefaultSlot';
|
return 'Webkul\BookingProduct\Contracts\BookingProductDefaultSlot';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ class BookingProductEventTicketRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\BookingProduct\Contracts\BookingProductEventTicket';
|
return 'Webkul\BookingProduct\Contracts\BookingProductEventTicket';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class BookingProductRentalSlotRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\BookingProduct\Contracts\BookingProductRentalSlot';
|
return 'Webkul\BookingProduct\Contracts\BookingProductRentalSlot';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,9 @@ class BookingProductRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\BookingProduct\Contracts\BookingProduct';
|
return 'Webkul\BookingProduct\Contracts\BookingProduct';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class BookingProductTableSlotRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\BookingProduct\Contracts\BookingProductTableSlot';
|
return 'Webkul\BookingProduct\Contracts\BookingProductTableSlot';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ class BookingRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\BookingProduct\Contracts\Booking';
|
return 'Webkul\BookingProduct\Contracts\Booking';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ class CmsRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\CMS\Contracts\CmsPage';
|
return 'Webkul\CMS\Contracts\CmsPage';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ class CartRuleCouponRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\CartRule\Contracts\CartRuleCoupon';
|
return 'Webkul\CartRule\Contracts\CartRuleCoupon';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class CartRuleCouponUsageRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\CartRule\Contracts\CartRuleCouponUsage';
|
return 'Webkul\CartRule\Contracts\CartRuleCouponUsage';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class CartRuleCustomerRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\CartRule\Contracts\CartRuleCustomer';
|
return 'Webkul\CartRule\Contracts\CartRuleCustomer';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,9 @@ class CartRuleRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\CartRule\Contracts\CartRule';
|
return 'Webkul\CartRule\Contracts\CartRule';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ class CatalogRuleProductPriceRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name.
|
* Specify Model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\CatalogRule\Contracts\CatalogRuleProductPrice';
|
return 'Webkul\CatalogRule\Contracts\CatalogRuleProductPrice';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class CatalogRuleProductRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\CatalogRule\Contracts\CatalogRuleProduct';
|
return 'Webkul\CatalogRule\Contracts\CatalogRuleProduct';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,11 @@ class CatalogRuleRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\CatalogRule\Contracts\CatalogRule::class;
|
return 'Webkul\CatalogRule\Contracts\CatalogRule';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ class CategoryRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Category\Contracts\Category::class;
|
return 'Webkul\Category\Contracts\Category';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class CartAddressRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Checkout\Contracts\CartAddress';
|
return 'Webkul\Checkout\Contracts\CartAddress';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,9 @@ class CartItemRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
function model(): string
|
||||||
function model()
|
|
||||||
{
|
{
|
||||||
return 'Webkul\Checkout\Contracts\CartItem';
|
return 'Webkul\Checkout\Contracts\CartItem';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class CartRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return Mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Checkout\Contracts\Cart';
|
return 'Webkul\Checkout\Contracts\Cart';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,11 @@ class ChannelRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Core\Contracts\Channel::class;
|
return 'Webkul\Core\Contracts\Channel';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class CoreConfigRepository extends Repository
|
||||||
*/
|
*/
|
||||||
public function model(): string
|
public function model(): string
|
||||||
{
|
{
|
||||||
return CoreConfig::class;
|
return 'Webkul\Core\Contracts\CoreConfig';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ class CountryRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Core\Contracts\Country';
|
return 'Webkul\Core\Contracts\Country';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ class CountryStateRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Core\Contracts\CountryState';
|
return 'Webkul\Core\Contracts\CountryState';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ class CurrencyRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Core\Contracts\Currency::class;
|
return 'Webkul\Core\Contracts\Currency';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,10 @@ class ExchangeRateRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Core\Contracts\CurrencyExchangeRate::class;
|
return 'Webkul\Core\Contracts\CurrencyExchangeRate';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,11 @@ class LocaleRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Core\Contracts\Locale::class;
|
return 'Webkul\Core\Contracts\Locale';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,9 @@ class SliderRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Core\Contracts\Slider';
|
return 'Webkul\Core\Contracts\Slider';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,9 @@ class SubscribersListRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Core\Contracts\SubscribersList';
|
return 'Webkul\Core\Contracts\SubscribersList';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class CustomerAddressRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Customer\Contracts\CustomerAddress';
|
return 'Webkul\Customer\Contracts\CustomerAddress';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,11 @@ class CustomerGroupRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
public function model(): string
|
||||||
public function model()
|
|
||||||
{
|
{
|
||||||
return \Webkul\Customer\Contracts\CustomerGroup::class;
|
return 'Webkul\Customer\Contracts\CustomerGroup';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@ class CustomerRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Customer\Contracts\Customer::class;
|
return 'Webkul\Customer\Contracts\Customer';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ class WishlistRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Customer\Contracts\Wishlist::class;
|
return 'Webkul\Customer\Contracts\Wishlist';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ class InventorySourceRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Inventory\Contracts\InventorySource::class;
|
return 'Webkul\Inventory\Contracts\InventorySource';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ class CampaignRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Marketing\Contracts\Campaign::class;
|
return 'Webkul\Marketing\Contracts\Campaign';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ class EventRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Marketing\Contracts\Event::class;
|
return 'Webkul\Marketing\Contracts\Event';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ class TemplateRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Marketing\Contracts\Template::class;
|
return 'Webkul\Marketing\Contracts\Template';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class NotificationRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Notification\Contracts\Notification';
|
return 'Webkul\Notification\Contracts\Notification';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ class ProductAttributeValueRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductAttributeValue';
|
return 'Webkul\Product\Contracts\ProductAttributeValue';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class ProductBundleOptionProductRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductBundleOptionProduct';
|
return 'Webkul\Product\Contracts\ProductBundleOptionProduct';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ class ProductBundleOptionRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductBundleOption';
|
return 'Webkul\Product\Contracts\ProductBundleOption';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ class ProductCustomerGroupPriceRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name.
|
* Specify Model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductCustomerGroupPrice';
|
return 'Webkul\Product\Contracts\ProductCustomerGroupPrice';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ class ProductDownloadableLinkRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductDownloadableLink';
|
return 'Webkul\Product\Contracts\ProductDownloadableLink';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ class ProductDownloadableSampleRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductDownloadableSample';
|
return 'Webkul\Product\Contracts\ProductDownloadableSample';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class ProductFlatRepository extends Repository
|
||||||
*/
|
*/
|
||||||
public function model(): string
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Product\Contracts\ProductFlat::class;
|
return 'Webkul\Product\Contracts\ProductFlat';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,12 @@ use Illuminate\Support\Str;
|
||||||
|
|
||||||
class ProductGroupedProductRepository extends Repository
|
class ProductGroupedProductRepository extends Repository
|
||||||
{
|
{
|
||||||
public function model()
|
/**
|
||||||
|
* Specify model.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductGroupedProduct';
|
return 'Webkul\Product\Contracts\ProductGroupedProduct';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class ProductImageRepository extends ProductMediaRepository
|
||||||
*/
|
*/
|
||||||
public function model(): string
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Product\Contracts\ProductImage::class;
|
return 'Webkul\Product\Contracts\ProductImage';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class ProductInventoryRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name.
|
* Specify Model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductInventory';
|
return 'Webkul\Product\Contracts\ProductInventory';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,9 @@ class ProductRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Product\Contracts\Product::class;
|
return 'Webkul\Product\Contracts\Product';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ class ProductReviewImageRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductReviewImage';
|
return 'Webkul\Product\Contracts\ProductReviewImage';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ class ProductReviewRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Product\Contracts\ProductReview::class;
|
return 'Webkul\Product\Contracts\ProductReview';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class ProductVideoRepository extends ProductMediaRepository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Product\Contracts\ProductVideo::class;
|
return 'Webkul\Product\Contracts\ProductVideo';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,13 @@ class SearchRepository extends Repository
|
||||||
{
|
{
|
||||||
parent::__construct($container);
|
parent::__construct($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
function model()
|
/**
|
||||||
|
* Specify model class name.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\Product';
|
return 'Webkul\Product\Contracts\Product';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ namespace Webkul\Sales\Repositories;
|
||||||
|
|
||||||
use Illuminate\Container\Container;
|
use Illuminate\Container\Container;
|
||||||
use Webkul\Core\Eloquent\Repository;
|
use Webkul\Core\Eloquent\Repository;
|
||||||
use Webkul\Sales\Contracts\DownloadableLinkPurchased;
|
|
||||||
use Webkul\Product\Repositories\ProductDownloadableLinkRepository;
|
use Webkul\Product\Repositories\ProductDownloadableLinkRepository;
|
||||||
|
|
||||||
class DownloadableLinkPurchasedRepository extends Repository
|
class DownloadableLinkPurchasedRepository extends Repository
|
||||||
|
|
@ -29,9 +28,9 @@ class DownloadableLinkPurchasedRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return DownloadableLinkPurchased::class;
|
return 'Webkul\Sales\Contracts\DownloadableLinkPurchased';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ namespace Webkul\Sales\Repositories;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Event;
|
use Illuminate\Support\Facades\Event;
|
||||||
use Webkul\Core\Eloquent\Repository;
|
use Webkul\Core\Eloquent\Repository;
|
||||||
use Webkul\Sales\Contracts\InvoiceItem;
|
|
||||||
|
|
||||||
class InvoiceItemRepository extends Repository
|
class InvoiceItemRepository extends Repository
|
||||||
{
|
{
|
||||||
|
|
@ -13,9 +12,9 @@ class InvoiceItemRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return InvoiceItem::class;
|
return 'Webkul\Sales\Contracts\InvoiceItem';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ use Illuminate\Container\Container;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Event;
|
use Illuminate\Support\Facades\Event;
|
||||||
use Webkul\Core\Eloquent\Repository;
|
use Webkul\Core\Eloquent\Repository;
|
||||||
use Webkul\Sales\Contracts\Invoice;
|
|
||||||
use Webkul\Sales\Generators\InvoiceSequencer;
|
use Webkul\Sales\Generators\InvoiceSequencer;
|
||||||
|
|
||||||
class InvoiceRepository extends Repository
|
class InvoiceRepository extends Repository
|
||||||
|
|
@ -37,9 +36,9 @@ class InvoiceRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return Invoice::class;
|
return 'Webkul\Sales\Contracts\Invoice';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,8 @@ class OrderAddressRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
function model(): string
|
||||||
function model()
|
|
||||||
{
|
{
|
||||||
return OrderAddress::class;
|
return 'Webkul\Sales\Contracts\OrderAddress';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -12,8 +12,8 @@ class OrderCommentRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return OrderComment::class;
|
return 'Webkul\Sales\Contracts\OrderComment';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ class OrderItemRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return OrderItem::class;
|
return 'Webkul\Sales\Contracts\OrderItem';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Event;
|
use Illuminate\Support\Facades\Event;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
use Webkul\Core\Eloquent\Repository;
|
use Webkul\Core\Eloquent\Repository;
|
||||||
use Webkul\Sales\Contracts\Order;
|
|
||||||
use Webkul\Sales\Generators\OrderSequencer;
|
use Webkul\Sales\Generators\OrderSequencer;
|
||||||
use Webkul\Sales\Models\Order as OrderModel;
|
use Webkul\Sales\Models\Order as OrderModel;
|
||||||
|
|
||||||
|
|
@ -35,9 +34,9 @@ class OrderRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return Order::class;
|
return 'Webkul\Sales\Contracts\Order';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
namespace Webkul\Sales\Repositories;
|
namespace Webkul\Sales\Repositories;
|
||||||
|
|
||||||
use Webkul\Core\Eloquent\Repository;
|
use Webkul\Core\Eloquent\Repository;
|
||||||
use Webkul\Sales\Contracts\OrderTransaction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Transaction Repository
|
* Order Transaction Repository
|
||||||
|
|
@ -18,9 +17,8 @@ class OrderTransactionRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
function model(): string
|
||||||
function model()
|
|
||||||
{
|
{
|
||||||
return OrderTransaction::class;
|
return 'Webkul\Sales\Contracts\OrderTransaction';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -12,9 +12,9 @@ class RefundItemRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return RefundItem::class;
|
return 'Webkul\Sales\Contracts\RefundItem';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ use Illuminate\Container\Container;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Event;
|
use Illuminate\Support\Facades\Event;
|
||||||
use Webkul\Core\Eloquent\Repository;
|
use Webkul\Core\Eloquent\Repository;
|
||||||
use Webkul\Sales\Contracts\Refund;
|
|
||||||
|
|
||||||
class RefundRepository extends Repository
|
class RefundRepository extends Repository
|
||||||
{
|
{
|
||||||
|
|
@ -35,9 +34,9 @@ class RefundRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return Refund::class;
|
return 'Webkul\Sales\Contracts\Refund';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ class ShipmentItemRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return ShipmentItem::class;
|
return 'Webkul\Sales\Contracts\ShipmentItem';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ use Illuminate\Container\Container;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\Event;
|
use Illuminate\Support\Facades\Event;
|
||||||
use Webkul\Core\Eloquent\Repository;
|
use Webkul\Core\Eloquent\Repository;
|
||||||
use Webkul\Sales\Contracts\Shipment;
|
|
||||||
use Webkul\Sales\Repositories\OrderItemRepository;
|
use Webkul\Sales\Repositories\OrderItemRepository;
|
||||||
use Webkul\Sales\Repositories\OrderRepository;
|
use Webkul\Sales\Repositories\OrderRepository;
|
||||||
use Webkul\Sales\Repositories\ShipmentItemRepository;
|
use Webkul\Sales\Repositories\ShipmentItemRepository;
|
||||||
|
|
@ -37,9 +36,9 @@ class ShipmentRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return Shipment::class;
|
return 'Webkul\Sales\Contracts\Shipment';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ class SitemapRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Sitemap\Contracts\Sitemap';
|
return 'Webkul\Sitemap\Contracts\Sitemap';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class CustomerSocialAccountRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\SocialLogin\Contracts\CustomerSocialAccount';
|
return 'Webkul\SocialLogin\Contracts\CustomerSocialAccount';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ class TaxCategoryRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Tax\Contracts\TaxCategory::class;
|
return 'Webkul\Tax\Contracts\TaxCategory';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ class TaxMapRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify Model class name
|
* Specify Model class name
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Tax\Contracts\TaxMap';
|
return 'Webkul\Tax\Contracts\TaxMap';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ class TaxRateRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\Tax\Contracts\TaxRate::class;
|
return 'Webkul\Tax\Contracts\TaxRate';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ class AdminRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model(): string
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\User\Contracts\Admin::class;
|
return 'Webkul\User\Contracts\Admin';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ class RoleRepository extends Repository
|
||||||
/**
|
/**
|
||||||
* Specify model class name.
|
* Specify model class name.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function model()
|
public function model(): string
|
||||||
{
|
{
|
||||||
return \Webkul\User\Contracts\Role::class;
|
return 'Webkul\User\Contracts\Role';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class CategoryRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Velocity\Contracts\Category';
|
return 'Webkul\Velocity\Contracts\Category';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class ContentRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Velocity\Contracts\Content';
|
return 'Webkul\Velocity\Contracts\Content';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class ContentTranslationRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Velocity\Contracts\ContentTranslation';
|
return 'Webkul\Velocity\Contracts\ContentTranslation';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class OrderBrandsRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Velocity\Contracts\OrderBrand';
|
return 'Webkul\Velocity\Contracts\OrderBrand';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class ProductRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\Product';
|
return 'Webkul\Product\Contracts\Product';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class ReviewRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Product\Contracts\ProductReview';
|
return 'Webkul\Product\Contracts\ProductReview';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ class VelocityCustomerCompareProductRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Velocity\Contracts\VelocityCustomerCompareProduct';
|
return 'Webkul\Velocity\Contracts\VelocityCustomerCompareProduct';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ class VelocityMetadataRepository extends Repository
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function model()
|
function model(): string
|
||||||
{
|
{
|
||||||
return 'Webkul\Velocity\Contracts\VelocityMetadata';
|
return 'Webkul\Velocity\Contracts\VelocityMetadata';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue