src/ForkManager.php
public function doTheJobChild($num, $callback, $params = array()) {
        if (!$callback instanceof CallbackHandler) {
            $callback = new CallbackHandler($callback);
        }
        if (!is_array($params)) {
            $params = array($params);
        }
        $this->callbackChildren[$num] = $callback;
        $this->callbackParamChildren[$num] = $params;
        return $this;
    }
public function doTheJobChild($num, $callback, $params = array()) {
        if (!$callback instanceof CallbackHandler) {
            $callback = new CallbackHandler($callback);
        }
        if (!is_array($params)) {
            $params = array($params);
        }
        $this->callbackChildren[$num] = $callback;
        $this->callbackParamChildren[$num] = $params;
        return $this;
    }
public function doTheJobChild ( $ num , $ callback , $ params = array ( ) ) { if ( ! $ callback instanceof CallbackHandler ) { $ callback = new CallbackHandler ( $ callback ) ; } if ( ! is_array ( $ params ) ) { $ params = array ( $ params ) ; } $ this -> callbackChildren [ $ num ] = $ callback ; $ this -> callbackParamChildren [ $ num ] = $ params ; return $ this ; }
Set cild jobs
@param mixed $callback
@param mixed $params
Set cild jobs