public function removeWorker($id)
    {
        if ($id instanceof Worker) {
            $id = $id->getId();
        }

        if (isset($this->waitingList[$id])) {
            unset($this->waitingList[$id]);
        }
        if (isset($this->workerList[$id])) {
            unset($this->workerList[$id]);
        }

        return $this;
    }
public function removeWorker($id)
    {
        if ($id instanceof Worker) {
            $id = $id->getId();
        }

        if (isset($this->waitingList[$id])) {
            unset($this->waitingList[$id]);
        }
        if (isset($this->workerList[$id])) {
            unset($this->workerList[$id]);
        }

        return $this;
    }
public function removeWorker ( $ id ) { if ( $ id instanceof Worker ) { $ id = $ id -> getId ( ) ; } if ( isset ( $ this -> waitingList [ $ id ] ) ) { unset ( $ this -> waitingList [ $ id ] ) ; } if ( isset ( $ this -> workerList [ $ id ] ) ) { unset ( $ this -> workerList [ $ id ] ) ; } return $ this ; }
Removes the worker from the action.

@param Worker $id

@return Action
Removes the worker from the action .