public function control(callable $callback, $context = null)
    {
        $this->control = $callback;
        $this->controlContext = $context;

        return $this;
    }
public function control(callable $callback, $context = null)
    {
        $this->control = $callback;
        $this->controlContext = $context;

        return $this;
    }
public function control ( callable $ callback , $ context = null ) { $ this -> control = $ callback ; $ this -> controlContext = $ context ; return $ this ; }
Register a control callback.

@param callable $callback
@param mixed $context

@return $this
Register a control callback .