Bravo3\Orm\Drivers\Common\WorkerPool::__construct PHP Method

__construct() public method

If any of the workers passed in $workers are a string, it is considered the class name for a WorkerInterface that is lazy-loaded on demand.
public __construct ( array $workers = [], mixed $worker_data = null )
$workers array Preload the pool with some workers
$worker_data mixed Data to pass to worker constructors
    public function __construct(array $workers = [], $worker_data = null)
    {
        $this->workers = $workers;
        $this->worker_data = $worker_data;
    }