src/ForkManager.php
public function doTheJob($callback, $params = array()) {
        if (!$callback instanceof CallbackHandler) {
            $callback = new CallbackHandler($callback);
        }
        if (!is_array($params)) {
            $params = array($params);
        }
        $this->callback = $callback;
        $this->callbackParam = $params;
        return $this;
    }
public function doTheJob($callback, $params = array()) {
        if (!$callback instanceof CallbackHandler) {
            $callback = new CallbackHandler($callback);
        }
        if (!is_array($params)) {
            $params = array($params);
        }
        $this->callback = $callback;
        $this->callbackParam = $params;
        return $this;
    }
public function doTheJob ( $ callback , $ params = array ( ) ) { if ( ! $ callback instanceof CallbackHandler ) { $ callback = new CallbackHandler ( $ callback ) ; } if ( ! is_array ( $ params ) ) { $ params = array ( $ params ) ; } $ this -> callback = $ callback ; $ this -> callbackParam = $ params ; return $ this ; }
Set default jobs
@param mixed $callback
@param mixed $params
Set default jobs