Function CMSStatsProvider->find_value_bracket
Definitions
sources/stats.php
- Find which bracket a value fits in.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$brackets | array | No | No | required parameter | N/A | N/A | List of brackets |
$value | integer | No | No | required parameter | N/A | N/A | Value |
Returns
- Bracket (null: none)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find which bracket a value fits in.
*
* @param array $brackets List of brackets
* @param integer $value Value
* @return ?string Bracket (null: none)
*/
protected function find_value_bracket(array $brackets, int $value) : ?string
* Find which bracket a value fits in.
*
* @param array $brackets List of brackets
* @param integer $value Value
* @return ?string Bracket (null: none)
*/
protected function find_value_bracket(array $brackets, int $value) : ?string