lib/RestAPI.php
public function getWorker()
    {
        if ($this->_worker===null) {
            $config = Config::getInstance();
            $this->setupWorker($config);
        }

        return $this->_worker;
    }
public function getWorker()
    {
        if ($this->_worker===null) {
            $config = Config::getInstance();
            $this->setupWorker($config);
        }

        return $this->_worker;
    }
public function getWorker ( ) { if ( $ this -> _worker === null ) { $ config = Config :: getInstance ( ) ; $ this -> setupWorker ( $ config ) ; } return $ this -> _worker ; }
Get the current worker.
@return object
Get the current worker .