ProcessCustomerCreated
in package
implements
ShouldQueue, ShouldBeUnique
Uses
Dispatchable, InteractsWithQueue, Queueable, SerializesModels, ActivityLogger, RetriableJob
Interfaces, Classes, Traits and Enums
- ShouldQueue
- ShouldBeUnique
Table of Contents
- $errorLogName : string
- $warningLogName : string
- $jobsLogName : string
- The name of the log in which we are going to log actions performed by jobs
- $apiVersion : string
- The apiVersion that should be used to retrieve services
- $customer : Customer
- The customer instance
- __construct() : mixed
- handle() : void
- This function will create a default user upon creation of a customer
- logEntry() : Activity
- logEntryWithoutModel() : Activity
- logError() : Activity
- logWarning() : Activity
- uniqueId() : string
- log() : array<string|int, Activity>
Properties
$errorLogName
public
static string
$errorLogName
= "error"
$warningLogName
public
static string
$warningLogName
= "warning"
$jobsLogName
The name of the log in which we are going to log actions performed by jobs
protected
string
$jobsLogName
= "jobs"
$apiVersion
The apiVersion that should be used to retrieve services
private
string
$apiVersion
$customer
The customer instance
private
Customer
$customer
Methods
__construct()
public
__construct(Customer $customer, string $apiVersion) : mixed
Parameters
- $customer : Customer
- $apiVersion : string
Return values
mixed —handle()
This function will create a default user upon creation of a customer
public
handle() : void
Tags
Return values
void —logEntry()
public
static logEntry(Model $model, array<string|int, mixed> $properties, string $description, string $event, string $logName) : Activity
Parameters
- $model : Model
- $properties : array<string|int, mixed>
- $description : string
- $event : string
- $logName : string
Return values
Activity —logEntryWithoutModel()
public
static logEntryWithoutModel(array<string|int, mixed> $properties, string $description, string $event, string $logName) : Activity
Parameters
- $properties : array<string|int, mixed>
- $description : string
- $event : string
- $logName : string
Return values
Activity —logError()
public
static logError(Model $model, array<string|int, mixed> $properties, string $description, string $event) : Activity
Parameters
- $model : Model
- $properties : array<string|int, mixed>
- $description : string
- $event : string
Return values
Activity —logWarning()
public
static logWarning(Model $model, array<string|int, mixed> $properties, string $description, string $event) : Activity
Parameters
- $model : Model
- $properties : array<string|int, mixed>
- $description : string
- $event : string
Return values
Activity —uniqueId()
public
uniqueId() : string
Return values
string —log()
protected
log(Model|array<string|int, mixed> $models, array<string|int, mixed> $properties, string $description[, null $logName = null ]) : array<string|int, Activity>
Parameters
- $models : Model|array<string|int, mixed>
- $properties : array<string|int, mixed>
- $description : string
- $logName : null = null