JobDemoAccountGenerationInitComponent
extends JobDemoAccountMainHandlerComponent
in package
Table of Contents
Constants
- SUPPORTED_JOB_ACTION_LIST = [\Vatjar\Jobs\Model\Job::MAIN_ACTION_DEMO_ACCOUNT => [\Vatjar\Jobs\Model\Job::SUB_ACTION_DEMO_ACCOUNT_GENERATION_INIT]]
Properties
- $handlerList : AbstractJobHandlerComponent]
- $job : Job
- $jobList : array<string|int, Job>
- $lockList : FSLock[string]
- $opt : array<string|int, mixed>
Methods
- __construct() : mixed
- afterHandle() : JobResult
- beforeHandle() : mixed
- create() : static
- createAndHandle() : mixed
- getHandler() : AbstractJobHandlerComponent|null
- getJob() : Job
- getJobList() : array<string|int, Job>
- getJobParameters() : array<string|int, mixed>
- getLockNameListForHandle() : mixed
- getLockPrefix() : string
- getOpt() : array<string|int, mixed>
- getOptUser() : mixed
- getOptUserId() : mixed
- getOptVal() : mixed
- getOptValOr() : mixed
- getRequestUserAccountId() : int
- handle() : JobResult
- handleJob() : mixed
- handleLock() : mixed
- hasOptKey() : mixed
- loadJobList() : mixed
- lock() : bool
- setJob() : mixed
- setOpt() : static
- support() : bool
- unlock() : void
- _handle() : JobResult
- getDemoAccount() : DemoAccount
- getDemoAccountParameters() : array<string|int, mixed>
- getDemoClient() : Client|null
- getDemoPerson() : Person|null
- getDemoUserAccount() : UserAccount
- getDemoUserId() : int
- getEntityManager() : EntityManager
- prepareWaitingJobsResponse() : array<string|int, mixed>
Constants
SUPPORTED_JOB_ACTION_LIST
public
mixed
SUPPORTED_JOB_ACTION_LIST
= [\Vatjar\Jobs\Model\Job::MAIN_ACTION_DEMO_ACCOUNT => [\Vatjar\Jobs\Model\Job::SUB_ACTION_DEMO_ACCOUNT_GENERATION_INIT]]
Properties
$handlerList
protected
AbstractJobHandlerComponent]
$handlerList
= [\Vatjar\DemoAccount\Component\JobDemoAccountGenerationManagerComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountGenerationInitComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateInactiveComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateUserModuleComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateProductComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateAmazonMovementComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateMouMovementComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateUserVatComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountActivateClientComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateSubscriptionComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountForceCreateReportComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountCreateQualityControlComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountSubmitReportComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountOnboardingComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountActivateUserAccountComponent::class => null, \Vatjar\DemoAccount\Component\JobDemoAccountGenerationFinishComponent::class => null]
$job
protected
Job
$job
$jobList
protected
array<string|int, Job>
$jobList
$lockList
private
FSLock[string]
$lockList
= []
$opt
private
array<string|int, mixed>
$opt
Methods
__construct()
public
__construct([Job $job = null ][, array<string|int, mixed> $opt = null ]) : mixed
Parameters
- $job : Job = null
- $opt : array<string|int, mixed> = null
afterHandle()
public
afterHandle(JobResult $jobResult) : JobResult
Parameters
- $jobResult : JobResult
Return values
JobResultbeforeHandle()
public
beforeHandle() : mixed
create()
public
static create([Job $job = null ][, array<string|int, mixed> $opt = null ]) : static
Parameters
- $job : Job = null
- $opt : array<string|int, mixed> = null
Return values
staticcreateAndHandle()
public
static createAndHandle([Job $job = null ][, array<string|int, mixed> $opt = null ]) : mixed
Parameters
- $job : Job = null
- $opt : array<string|int, mixed> = null
getHandler()
public
getHandler(Job $job) : AbstractJobHandlerComponent|null
Parameters
- $job : Job
Return values
AbstractJobHandlerComponent|nullgetJob()
public
getJob() : Job
Return values
JobgetJobList()
public
getJobList() : array<string|int, Job>
Return values
array<string|int, Job>getJobParameters()
public
getJobParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getLockNameListForHandle()
public
getLockNameListForHandle() : mixed
getLockPrefix()
public
getLockPrefix() : string
Return values
stringgetOpt()
public
getOpt([array<string|int, mixed> $opt = null ]) : array<string|int, mixed>
Parameters
- $opt : array<string|int, mixed> = null
Return values
array<string|int, mixed>getOptUser()
public
getOptUser() : mixed
getOptUserId()
public
getOptUserId() : mixed
getOptVal()
public
getOptVal(string $key) : mixed
Parameters
- $key : string
getOptValOr()
public
getOptValOr(string $key[, mixed $or = null ]) : mixed
Parameters
- $key : string
- $or : mixed = null
getRequestUserAccountId()
public
getRequestUserAccountId() : int
Return values
inthandle()
public
handle() : JobResult
Return values
JobResulthandleJob()
public
handleJob(Job $job[, array<string|int, mixed> $opt = null ]) : mixed
Parameters
- $job : Job
- $opt : array<string|int, mixed> = null
handleLock()
public
handleLock() : mixed
hasOptKey()
public
hasOptKey(string $key) : mixed
Parameters
- $key : string
loadJobList()
public
loadJobList() : mixed
Tags
lock()
public
lock([array<string|int, mixed> $lockNameList = [] ]) : bool
Parameters
- $lockNameList : array<string|int, mixed> = []
Tags
Return values
boolsetJob()
public
setJob(Job $job) : mixed
Parameters
- $job : Job
setOpt()
public
setOpt(array<string|int, mixed> $opt) : static
Parameters
- $opt : array<string|int, mixed>
Return values
staticsupport()
public
static support(Job $job) : bool
Parameters
- $job : Job
Return values
boolunlock()
public
unlock() : void
_handle()
protected
_handle() : JobResult
Return values
JobResultgetDemoAccount()
protected
getDemoAccount() : DemoAccount
Tags
Return values
DemoAccountgetDemoAccountParameters()
protected
getDemoAccountParameters() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getDemoClient()
protected
getDemoClient() : Client|null
Return values
Client|nullgetDemoPerson()
protected
getDemoPerson() : Person|null
Return values
Person|nullgetDemoUserAccount()
protected
getDemoUserAccount() : UserAccount
Tags
Return values
UserAccountgetDemoUserId()
protected
getDemoUserId() : int
Return values
intgetEntityManager()
protected
getEntityManager() : EntityManager
Return values
EntityManagerprepareWaitingJobsResponse()
protected
prepareWaitingJobsResponse(array<string|int, Job> $jobs) : array<string|int, mixed>
Parameters
- $jobs : array<string|int, Job>