SetType(Input::INPUT_HIDDEN) ->SetName($sName) ->SetValue($sValue); return $oInput; } public static function MakeForSelect(string $sName, string $sLabel, ?string $sId = null): Select { $oInput = new Select($sId); $oInput->SetName($sName) ->SetLabel($sLabel); return $oInput; } public static function MakeForSelectOption(string $sValue, string $sLabel, bool $bSelected, ?string $sId = null): SelectOption { $oInput = new SelectOption($sId); $oInput->SetValue($sValue) ->SetLabel($sLabel) ->SetSelected($bSelected); return $oInput; } }