private function isValidSelectionMethod($selectionMethod)
    {
        return in_array($selectionMethod, [
            self::SELECTION_BROWSE,
            self::SELECTION_DROPDOWN,
            self::SELECTION_LIST_WITH_RADIO_BUTTONS,
            self::SELECTION_LIST_WITH_CHECKBOXES,
            self::SELECTION_MULTIPLE_SELECTION_LIST,
            self::SELECTION_TEMPLATE_BASED_MULTIPLE,
            self::SELECTION_TEMPLATE_BASED_SINGLE,
        ], true);
    }
private function isValidSelectionMethod($selectionMethod)
    {
        return in_array($selectionMethod, [
            self::SELECTION_BROWSE,
            self::SELECTION_DROPDOWN,
            self::SELECTION_LIST_WITH_RADIO_BUTTONS,
            self::SELECTION_LIST_WITH_CHECKBOXES,
            self::SELECTION_MULTIPLE_SELECTION_LIST,
            self::SELECTION_TEMPLATE_BASED_MULTIPLE,
            self::SELECTION_TEMPLATE_BASED_SINGLE,
        ], true);
    }
private function isValidSelectionMethod ( $ selectionMethod ) { return in_array ( $ selectionMethod , [ self :: SELECTION_BROWSE , self :: SELECTION_DROPDOWN , self :: SELECTION_LIST_WITH_RADIO_BUTTONS , self :: SELECTION_LIST_WITH_CHECKBOXES , self :: SELECTION_MULTIPLE_SELECTION_LIST , self :: SELECTION_TEMPLATE_BASED_MULTIPLE , self :: SELECTION_TEMPLATE_BASED_SINGLE , ] , true ) ; }
Checks whether given selectionMethod is valid.

@param int $selectionMethod

@return bool
Checks whether given selectionMethod is valid .