ProductSellsyCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Class ProductSellsyCommand
Table of Contents
Properties
- $notInSellsy : array<string|int, mixed>
- $sellsyProducts : array<string|int, mixed>
- $sentProducts : int
- $toBeUpdated : array<string|int, mixed>
Methods
- syncProductWithSellsy() : mixed
- Sending product to sellsy
- configure() : mixed
- execute() : int|null
- compareSellsyAndLogidavProducts() : mixed
- Comparing Products and find products not in sellsy and products in sellsy but not with the same prices
- exportPrices() : mixed
- getSellsyProducts() : mixed
- Get products from sellsy
- updatePrices() : mixed
Properties
$notInSellsy
private
array<string|int, mixed>
$notInSellsy
$sellsyProducts
private
array<string|int, mixed>
$sellsyProducts
= []
$sentProducts
private
int
$sentProducts
= 0
$toBeUpdated
private
array<string|int, mixed>
$toBeUpdated
Methods
syncProductWithSellsy()
Sending product to sellsy
public
syncProductWithSellsy(mixed $output, mixed $products) : mixed
Parameters
- $output : mixed
- $products : mixed
Tags
configure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|null
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
int|nullcompareSellsyAndLogidavProducts()
Comparing Products and find products not in sellsy and products in sellsy but not with the same prices
private
compareSellsyAndLogidavProducts() : mixed
exportPrices()
private
exportPrices() : mixed
getSellsyProducts()
Get products from sellsy
private
getSellsyProducts([int $page = 1 ]) : mixed
Parameters
- $page : int = 1
updatePrices()
private
updatePrices() : mixed