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

addWorker() public method

Adds a worker to the pool
public addWorker ( string $name, Bravo3\Orm\Drivers\Common\WorkerInterface | string $worker )
$name string Command name the worker fulfills
$worker Bravo3\Orm\Drivers\Common\WorkerInterface | string Worker object or class name
    public function addWorker($name, $worker)
    {
        $this->workers[$name] = $worker;
        return $this;
    }