Manager
in package
Singleton for handling and creating processes.
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor, initiates worker processing if specified.
- Create() : self
- Static function to create Singleton.
- CreateProcess() : Process
- Creates a process for the specified worker.
- _processWorkers() : void
- Initiates worker processing.
Properties
$instance
Singleton instance.
public
static Manager
$instance
Methods
__construct()
Constructor, initiates worker processing if specified.
public
__construct() : mixed
Create()
Static function to create Singleton.
public
static Create() : self
Return values
selfCreateProcess()
Creates a process for the specified worker.
public
CreateProcess(Worker $worker[, bool $debug = false ]) : Process
Parameters
- $worker : Worker
-
The worker to be executed.
- $debug : bool = false
-
Indicates whether to display the worker's execution command.
Return values
Process —The created process.
_processWorkers()
Initiates worker processing.
private
_processWorkers() : void