SyncProductMeduseCommand
extends ContainerAwareCommand
Table of Contents
Properties
-
$connection
: Connection
-
$attrsNotToSync
: mixed
-
$entityManager
: EntityManagerInterface|null
-
$newProductService
: NewProductService
Methods
-
__construct()
: mixed
-
cleanDataFromAttr()
: void
-
strPosArray()
: mixed
-
configure()
: mixed
-
execute()
: mixed
-
getAvailableMappingData()
: false|mixed
-
updateCategories()
: mixed
$connection
protected
Connection
$connection
$attrsNotToSync
private
mixed
$attrsNotToSync
= ["colis_un_longueur", "colis_un_largeur", "colis_un_hauteur", "colis_un_poids", "key_2", "colis_deux_longueur", "colis_deux_largeur", "colis_deux_hauteur", "colis_deux_poids", "key_3", "colis_trois_longueur", "colis_trois_largeur", "colis_trois_hauteur", "colis_trois_poids", "key_4", "colis_quatre_longueur", "colis_quatre_largeur", "colis_quatre_hauteur", "colis_quatre_poids", "volume", "nombre_colis", "poids_net", "poids_total"]
$entityManager
private
EntityManagerInterface|null
$entityManager
$newProductService
private
NewProductService
$newProductService
__construct()
public
__construct([string $name = null ][, NewProductService $newProductService = null ][, MeduseService $meduseService = null ][, EntityManagerInterface $entityManager = null ]) : mixed
Parameters
-
$name
: string
= null
-
-
$newProductService
: NewProductService
= null
-
-
$meduseService
: MeduseService
= null
-
-
$entityManager
: EntityManagerInterface
= null
-
cleanDataFromAttr()
public
cleanDataFromAttr(mixed $string) : void
Parameters
-
$string
: mixed
-
strPosArray()
public
strPosArray(mixed $haystack, mixed $needle) : mixed
Parameters
-
$haystack
: mixed
-
-
$needle
: mixed
-
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
-
$input
: InputInterface
-
-
$output
: OutputInterface
-
-
throws
-
DBALException
getAvailableMappingData()
private
getAvailableMappingData(mixed $code) : false|mixed
Parameters
-
$code
: mixed
-
-
throws
-
DBALException
Return values
false|mixed
updateCategories()
private
updateCategories(mixed $productId, mixed $categories) : mixed
Parameters
-
$productId
: mixed
-
-
$categories
: mixed
-