| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class FloatHandler implements HandlerInterface |
||
| 11 | { |
||
| 12 | /** @var array $mapping parser result mapping */ |
||
| 13 | private $mapping; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * constructor |
||
| 17 | */ |
||
| 18 | 107 | public function __construct() |
|
| 24 | ); |
||
| 25 | 107 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * parse given `$source` as PHP serialized float number |
||
| 29 | * |
||
| 30 | * @param Source $source parser input |
||
| 31 | * @param string|null $args float value |
||
| 32 | * @return array |
||
| 33 | * @throws UnserializeFailedException |
||
| 34 | */ |
||
| 35 | 15 | public function handle(Source $source, $args) |
|
| 43 |