private function parserParamType(string $type, $value)
    {
        switch ($type) {
            case 'int':
                $value = (int)$value;
                break;
            case 'string':
                $value = (string)$value;
                break;
            case 'bool':
                $value = (bool)$value;
                break;
            case 'float':
                $value = (float)$value;
                break;
            case 'double':
                $value = (double)$value;
                break;
        }

        return $value;
    }
private function parserParamType(string $type, $value)
    {
        switch ($type) {
            case 'int':
                $value = (int)$value;
                break;
            case 'string':
                $value = (string)$value;
                break;
            case 'bool':
                $value = (bool)$value;
                break;
            case 'float':
                $value = (float)$value;
                break;
            case 'double':
                $value = (double)$value;
                break;
        }

        return $value;
    }
private function parserParamType ( string $ type , $ value ) { switch ( $ type ) { case 'int' : $ value = ( int ) $ value ; break ; case 'string' : $ value = ( string ) $ value ; break ; case 'bool' : $ value = ( bool ) $ value ; break ; case 'float' : $ value = ( float ) $ value ; break ; case 'double' : $ value = ( double ) $ value ; break ; } return $ value ; }
parser the type of binding param

@param string $type  the type of param
@param mixed  $value the value of param

@return bool|float|int|string
parser the type of binding param