CreateMauroFerrettiNewProductsCommand
extends ContainerAwareCommand
Table of Contents
Properties
-
$attributeSetService
: mixed
-
$container
: mixed
-
$manufacturerBaseService
: mixed
-
$mauroFerrettiProductService
: mixed
-
$newProductService
: mixed
-
$openAi
: mixed
Methods
-
__construct()
: mixed
-
configure()
: mixed
-
execute()
: mixed
-
handleCreateNewProducts()
: mixed
-
loadCsvMapping()
: array<string|int, mixed>
$attributeSetService
private
mixed
$attributeSetService
$container
private
mixed
$container
$manufacturerBaseService
private
mixed
$manufacturerBaseService
$mauroFerrettiProductService
private
mixed
$mauroFerrettiProductService
$newProductService
private
mixed
$newProductService
$openAi
private
mixed
$openAi
__construct()
public
__construct(MauroFerrettiSRLProductService $mauroFerrettiProductService, NewProductService $newProductService, ManufacturerBaseService $manufacturerBaseService, ContainerInterface $container, OpenAi $openAi, AttributeSetService $attributeSetService) : mixed
Parameters
-
$mauroFerrettiProductService
: MauroFerrettiSRLProductService
-
-
$newProductService
: NewProductService
-
-
$manufacturerBaseService
: ManufacturerBaseService
-
-
$container
: ContainerInterface
-
-
$openAi
: OpenAi
-
-
$attributeSetService
: AttributeSetService
-
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
-
$input
: InputInterface
-
-
$output
: OutputInterface
-
handleCreateNewProducts()
private
handleCreateNewProducts(OutputInterface $output) : mixed
Parameters
-
$output
: OutputInterface
-
loadCsvMapping()
private
loadCsvMapping(string $relativePath, array<string|int, mixed> $requiredIndexes, callable $mapFunction[, string $delimiter = ',' ]) : array<string|int, mixed>
Parameters
-
$relativePath
: string
-
-
$requiredIndexes
: array<string|int, mixed>
-
-
$mapFunction
: callable
-
-
$delimiter
: string
= ','
-
Return values
array<string|int, mixed>