FML/Script/Features/EntrySubmit.php
public function setEntry(Entry $entry)
    {
        $entry->setScriptEvents(true)
              ->checkId();
        $this->entry = $entry;
        return $this;
    }
public function setEntry(Entry $entry)
    {
        $entry->setScriptEvents(true)
              ->checkId();
        $this->entry = $entry;
        return $this;
    }
public function setEntry ( Entry $ entry ) { $ entry -> setScriptEvents ( true ) -> checkId ( ) ; $ this -> entry = $ entry ; return $ this ; }
Set the Entry

@api
@param Entry $entry Entry Control
@return static
Set the Entry