private function getDefaultValue(string $type)
    {
        $value = null;
        switch ($type) {
            case 'int':
                $value = 0;
                break;
            case 'string':
                $value = '';
                break;
            case 'bool':
                $value = false;
                break;
            case 'float':
                $value = 0;
                break;
            case 'double':
                $value = 0;
                break;
        }

        return $value;
    }
private function getDefaultValue(string $type)
    {
        $value = null;
        switch ($type) {
            case 'int':
                $value = 0;
                break;
            case 'string':
                $value = '';
                break;
            case 'bool':
                $value = false;
                break;
            case 'float':
                $value = 0;
                break;
            case 'double':
                $value = 0;
                break;
        }

        return $value;
    }
private function getDefaultValue ( string $ type ) { $ value = null ; switch ( $ type ) { case 'int' : $ value = 0 ; break ; case 'string' : $ value = '' ; break ; case 'bool' : $ value = false ; break ; case 'float' : $ value = 0 ; break ; case 'double' : $ value = 0 ; break ; } return $ value ; }
the default value of param

@param string $type the type of param

@return bool|float|int|string
the default value of param