SyncStockCommand
extends ContainerAwareCommand
Table of Contents
Constants
-
FEED_URL
= 'https://feeds.datafeedwatch.com/85466/aefa02d5c271f0a62ead7066004ccbbf48c5788d.xml'
Properties
-
$entityManager
: mixed
-
$productService
: object
-
$user
: mixed
Methods
-
__construct()
: mixed
-
configure()
: mixed
-
execute()
: int
-
processProduct()
: array<string|int, mixed>
FEED_URL
public
mixed
FEED_URL
= 'https://feeds.datafeedwatch.com/85466/aefa02d5c271f0a62ead7066004ccbbf48c5788d.xml'
$entityManager
private
mixed
$entityManager
$productService
private
object
$productService
$user
private
mixed
$user
__construct()
public
__construct(EntityManagerInterface $entityManager) : mixed
Parameters
-
$entityManager
: EntityManagerInterface
-
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
-
$input
: InputInterface
-
-
$output
: OutputInterface
-
processProduct()
private
processProduct(Product $product, mixed $status, mixed $qty) : array<string|int, mixed>
Parameters
-
$product
: Product
-
-
$status
: mixed
-
-
$qty
: mixed
-
Return values
array<string|int, mixed>