GenerateTrackingCodeCommand
extends ContainerAwareCommand
in package
uses
LockableTrait
Class GenerateTrackingCodeCommand
Table of Contents
Properties
- $connection : Connection
- $em : EntityManagerInterface
- $randomCodeService : TrackingCodeService
Methods
- __construct() : mixed
- configure() : mixed
- execute() : int|null
- checkCode() : bool
- generateRandomCode() : void
- insertCode() : void
- randomString() : string
Properties
$connection
private
Connection
$connection
$em
private
EntityManagerInterface
$em
$randomCodeService
private
TrackingCodeService
$randomCodeService
Methods
__construct()
public
__construct([mixed $name = null ][, TrackingCodeService $randomCodeService = null ][, EntityManagerInterface $entityManager = null ]) : mixed
Parameters
- $name : mixed = null
- $randomCodeService : TrackingCodeService = null
- $entityManager : EntityManagerInterface = null
configure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|null
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
int|nullcheckCode()
private
checkCode(string $code) : bool
Parameters
- $code : string
Return values
boolgenerateRandomCode()
private
generateRandomCode(int $nb) : void
Parameters
- $nb : int
insertCode()
private
insertCode(string $code) : void
Parameters
- $code : string
randomString()
private
randomString(mixed $length) : string
Parameters
- $length : mixed