GenerateProductSpecialPriceCommand
extends ContainerAwareCommand
uses
LockableTrait
Table of Contents
Properties
-
$dropShipProductDiscounts
: mixed
-
$priceService
: PriceService
-
$queueServiceInterface
: QueueServiceInterface
-
$asirProductService
: ProductService
-
$connection
: Connection
-
$em
: object
-
$priceHistoryService
: PriceHistoryService
Methods
-
__construct()
: mixed
-
addMarketingSpecialPriceLog()
: mixed
-
configure()
: mixed
-
execute()
: int|void|null
-
getDropShipProductsSaleQty()
: mixed
-
getProductDropShipDiscountPercent()
: array<string|int, mixed>|int
-
getProductInStockDiscountPercent()
: int|array<string|int, int>
-
getProductOutOfStockDiscountPercent()
: array<string|int, mixed>|int
-
isNewlyCreatedProduct()
: bool
$dropShipProductDiscounts
protected
mixed
$dropShipProductDiscounts
= [
// [
// 'from' => 0,
// 'to' => 0,
// 'value' => 15
// ],
// [
// 'from' => 1,
// 'to' => 3,
// 'value' => 10
// ],
['from' => 4, 'to' => 9999999999, 'value' => 5],
]
$priceService
protected
PriceService
$priceService
$queueServiceInterface
protected
QueueServiceInterface
$queueServiceInterface
$asirProductService
private
ProductService
$asirProductService
$connection
private
Connection
$connection
$em
private
object
$em
$priceHistoryService
private
PriceHistoryService
$priceHistoryService
__construct()
public
__construct([null $name = null ][, QueueServiceInterface|null $queueServiceInterface = null ][, PriceService|null $priceService = null ][, ProductService|null $asirProductService = null ][, PriceHistoryService $priceHistoryService = null ]) : mixed
Parameters
-
$name
: null
= null
-
-
$queueServiceInterface
: QueueServiceInterface|null
= null
-
-
$priceService
: PriceService|null
= null
-
-
$asirProductService
: ProductService|null
= null
-
-
$priceHistoryService
: PriceHistoryService
= null
-
addMarketingSpecialPriceLog()
public
addMarketingSpecialPriceLog(mixed $results) : mixed
Parameters
-
$results
: mixed
-
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|void|null
Parameters
-
$input
: InputInterface
-
-
$output
: OutputInterface
-
Return values
int|void|null
getDropShipProductsSaleQty()
private
getDropShipProductsSaleQty(mixed $ids) : mixed
Parameters
-
$ids
: mixed
-
getProductDropShipDiscountPercent()
private
getProductDropShipDiscountPercent(mixed $saleQty) : array<string|int, mixed>|int
Parameters
-
$saleQty
: mixed
-
Return values
array<string|int, mixed>|int
getProductInStockDiscountPercent()
private
getProductInStockDiscountPercent(mixed $productDateInterval, mixed $saleQty1Day) : int|array<string|int, int>
Parameters
-
$productDateInterval
: mixed
-
-
$saleQty1Day
: mixed
-
Return values
int|array<string|int, int>
getProductOutOfStockDiscountPercent()
private
getProductOutOfStockDiscountPercent(mixed $productDateInterval) : array<string|int, mixed>|int
Parameters
-
$productDateInterval
: mixed
-
Return values
array<string|int, mixed>|int
isNewlyCreatedProduct()
private
isNewlyCreatedProduct(Product $product) : bool
Parameters
-
$product
: Product
-