| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class FloatParameter extends Parameter { |
||
| 10 | |||
| 11 | protected static $name = 'float'; |
||
| 12 | |||
| 13 | |||
| 14 | public function __construct(string $extra) { |
||
| 15 | $this->default = floatval($this->getCommonDefault($extra)); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function unpackValue(string $matched) { |
||
| 19 | return floatval($matched); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * 获取匹配字符串 |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function getMatch():string { |
||
| 29 | } |
||
| 30 | } |