> For the complete documentation index, see [llms.txt](https://cherrycake.tin.cat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cherrycake.tin.cat/version-0.x/reference/core-classes/requestparameter/methods.md).

# RequestParameter methods

## \_\_construct( setup ) <a href="#construct" id="construct"></a>

* **`setup`** A hash array with the following possible keys:
  * **`name`** An name for the parameter, it will let you refer to this component in the future.
  * **`type`** The type of the parameter, from one of the following available types:
    * `REQUEST_PARAMETER_TYPE_GET`
    * `REQUEST_PARAMETER_TYPE_POST`
    * `REQUEST_PARAMETER_TYPE_FILE`
  * **`securityRules`** An array of the security rules that must be applied to the value received by this parameter. See [Working with Security](https://github.com/tin-cat/cherrycake-documentation/blob/master/reference/core-classes/requestparameter/broken-reference/README.md) for a list of all the available rules.
  * **`filters`** An array of the filters that must be applied to the value received by this parameter. See [Working with Security](https://github.com/tin-cat/cherrycake-documentation/blob/master/reference/core-classes/requestparameter/broken-reference/README.md) for a list of all the available filters.
