FML/Script/Features/MenuElement.php
public function setItem(Control $item)
    {
        $item->checkId();
        if ($item instanceof Scriptable) {
            $item->setScriptEvents(true);
        }
        $this->item = $item;
        return $this;
    }
public function setItem(Control $item)
    {
        $item->checkId();
        if ($item instanceof Scriptable) {
            $item->setScriptEvents(true);
        }
        $this->item = $item;
        return $this;
    }
public function setItem ( Control $ item ) { $ item -> checkId ( ) ; if ( $ item instanceof Scriptable ) { $ item -> setScriptEvents ( true ) ; } $ this -> item = $ item ; return $ this ; }
Set the Item Control

@api
@param Control $item Item Control
@return static
Set the Item Control