MergeLowestPriceCsvCommand
extends ContainerAwareCommand
uses
LockableTrait
Table of Contents
Methods
-
configure()
: mixed
-
execute()
: mixed
-
findHeaderIndex()
: int|null
-
mergeFile()
: void
-
parsePrice()
: float|null
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
-
$input
: InputInterface
-
-
$output
: OutputInterface
-
private
findHeaderIndex(array<string|int, mixed> $normalizedHeaders, array<string|int, mixed> $candidates) : int|null
Parameters
-
$normalizedHeaders
: array<string|int, mixed>
-
-
$candidates
: array<string|int, mixed>
-
mergeFile()
private
mergeFile(string $path, array<string|int, mixed> &$map, OutputInterface $output) : void
Parameters
-
$path
: string
-
-
$map
: array<string|int, mixed>
-
-
$output
: OutputInterface
-
parsePrice()
private
parsePrice(string $raw) : float|null
Parameters
-
$raw
: string
-