Property | Type | Description | |
---|---|---|---|
$_params | array | Params. | |
$_rawParams | array | Raw Params. |
Method | Description | |
---|---|---|
addParam ( string $key, mixed $value ) | Adds a param to the list. | |
getParam ( string $key ) : mixed | Returns a specific param. | |
getParams ( ) : array | Returns the params array. | |
hasParam ( string $key ) : boolean | Test if a param is set. | |
setParam ( string $key, mixed $value ) | Sets (overwrites) the value at the given key. | |
setParams ( array $params ) | Sets (overwrites) all params of this object. | |
toArray ( ) : array | Converts the params to an array. A default implementation exist to create the an array out of the class name (last part of the class name) and the params. |
Method | Description | |
---|---|---|
_convertArrayable ( array $array ) : array | Cast objects to arrays. | |
_getBaseName ( ) : string | Param's name Picks the last part of the class name and makes it snake_case You can override this method if you want to change the name. | |
_setRawParam ( string $key, mixed $value ) | Sets params not inside params array. |
protected _convertArrayable ( array $array ) : array | ||
$array | array | |
return | array |
protected _getBaseName ( ) : string | ||
return | string | name |
protected _setRawParam ( string $key, mixed $value ) | ||
$key | string | |
$value | mixed |