ShippingRateSyncCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Table of Contents
Properties
- $em : EntityManagerInterface|null
- $logShippingRates : array<string|int, string>
- $shippingRateService : ShippingRateService|null
Methods
- __construct() : mixed
- SaleExpeditionCheckCommand constructor.
- configure() : mixed
- execute() : mixed
- updateRate() : void
- Update shipping price
Properties
$em
private
EntityManagerInterface|null
$em
$logShippingRates
private
array<string|int, string>
$logShippingRates
$shippingRateService
private
ShippingRateService|null
$shippingRateService
Methods
__construct()
SaleExpeditionCheckCommand constructor.
public
__construct([null $name = null ][, EntityManagerInterface|null $entityManager = null ][, ShippingRateService|null $shippingRateService = null ]) : mixed
Parameters
- $name : null = null
- $entityManager : EntityManagerInterface|null = null
- $shippingRateService : ShippingRateService|null = null
configure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
updateRate()
Update shipping price
private
updateRate(mixed $countryId, mixed $weight, mixed $price, mixed $carrier) : void
Parameters
- $countryId : mixed
- $weight : mixed
- $price : mixed
- $carrier : mixed