public function addWorker($worker)
    {
        $this->addDefinition(
            'workers',
            is_callable($worker) ? new CallbackWorker($worker) : $worker
        );

        return $this;
    }
public function addWorker($worker)
    {
        $this->addDefinition(
            'workers',
            is_callable($worker) ? new CallbackWorker($worker) : $worker
        );

        return $this;
    }
public function addWorker ( $ worker ) { $ this -> addDefinition ( 'workers' , is_callable ( $ worker ) ? new CallbackWorker ( $ worker ) : $ worker ) ; return $ this ; }
Adds a worker instruction to a procedure.

@param WorkerInterface|callable $worker Worker

@return $this
Adds a worker instruction to a procedure .