public function setControl(Control $control)
    {
        $control->checkId();
        $control->addScriptFeature($this);
        $this->control = $control;
        $this->updateScriptEvents();
        return $this;
    }
public function setControl(Control $control)
    {
        $control->checkId();
        $control->addScriptFeature($this);
        $this->control = $control;
        $this->updateScriptEvents();
        return $this;
    }
public function setControl ( Control $ control ) { $ control -> checkId ( ) ; $ control -> addScriptFeature ( $ this ) ; $ this -> control = $ control ; $ this -> updateScriptEvents ( ) ; return $ this ; }
Set the Control

@api
@param Control $control Control
@return static
Set the Control