ShippingPriceService
in package
Table of Contents
Properties
- $em : EntityManagerInterface
- $repository : ShippingPriceRepository
Methods
- __construct() : mixed
- createShippingPrice() : ProductShippingPrice
- $data['product'] doit être une entité Product ou null
- deleteShippingPrice() : void
- getOneShippingPriceByProductAndStore() : ProductShippingPrice|null
- getShippingPricesByProductAndStore() : array<string|int, mixed>
- updateShippingPrice() : ProductShippingPrice
Properties
$em
private
EntityManagerInterface
$em
$repository
private
ShippingPriceRepository
$repository
Methods
__construct()
public
__construct(EntityManagerInterface $em) : mixed
Parameters
- $em : EntityManagerInterface
createShippingPrice()
$data['product'] doit être une entité Product ou null
public
createShippingPrice(array<string|int, mixed> $data) : ProductShippingPrice
Parameters
- $data : array<string|int, mixed>
Return values
ProductShippingPricedeleteShippingPrice()
public
deleteShippingPrice(ProductShippingPrice $shippingPrice) : void
Parameters
- $shippingPrice : ProductShippingPrice
getOneShippingPriceByProductAndStore()
public
getOneShippingPriceByProductAndStore(int $productId, int $storeId) : ProductShippingPrice|null
Parameters
- $productId : int
- $storeId : int
Return values
ProductShippingPrice|nullgetShippingPricesByProductAndStore()
public
getShippingPricesByProductAndStore(int $productId, int $storeId) : array<string|int, mixed>
Parameters
- $productId : int
- $storeId : int
Return values
array<string|int, mixed>updateShippingPrice()
public
updateShippingPrice(ProductShippingPrice $shippingPrice, array<string|int, mixed> $data) : ProductShippingPrice
Parameters
- $shippingPrice : ProductShippingPrice
- $data : array<string|int, mixed>