SyncProductsStockCommand
extends ContainerAwareCommand
in package
Table of Contents
Properties
- $asirProductService : ProductService
- $path : mixed
- $sftpPort : mixed
- $sftpServer : mixed
- $sftpUserName : mixed
- $sftpUserPass : mixed
Methods
- __construct() : mixed
- configure() : mixed
- Configure command
- execute() : mixed
- checkVisibility() : int
- getFileName() : string
- moveFileRemotely() : bool
Properties
$asirProductService
private
ProductService
$asirProductService
$path
private
mixed
$path
$sftpPort
private
mixed
$sftpPort
$sftpServer
private
mixed
$sftpServer
$sftpUserName
private
mixed
$sftpUserName
$sftpUserPass
private
mixed
$sftpUserPass
Methods
__construct()
public
__construct([string $name = null ][, ProductService $productService = null ]) : mixed
Parameters
- $name : string = null
- $productService : ProductService = null
configure()
Configure command
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
checkVisibility()
private
checkVisibility(Product $product, int $status, int $qty) : int
Parameters
- $product : Product
- $status : int
- $qty : int
Return values
intgetFileName()
private
getFileName(mixed $file, mixed $filesArray) : string
Parameters
- $file : mixed
- $filesArray : mixed
Return values
stringmoveFileRemotely()
private
moveFileRemotely(mixed $sftp, mixed $sourcePath, mixed $targetPath) : bool
Parameters
- $sftp : mixed
- $sourcePath : mixed
- $targetPath : mixed