private function generateCode(int $length = 4, string $prefix = '', string $suffix = '')
    {
        for ($i = 0; $i < $length; $i++) {
            $prefix .= random_int(0, 1) ? chr(random_int(65, 90)) : random_int(0, 9);
        }

        return $prefix.$suffix;
    }
private function generateCode(int $length = 4, string $prefix = '', string $suffix = '')
    {
        for ($i = 0; $i < $length; $i++) {
            $prefix .= random_int(0, 1) ? chr(random_int(65, 90)) : random_int(0, 9);
        }

        return $prefix.$suffix;
    }
private function generateCode ( int $ length = 4 , string $ prefix = '' , string $ suffix = '' ) { for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ prefix .= random_int ( 0 , 1 ) ? chr ( random_int ( 65 , 90 ) ) : random_int ( 0 , 9 ) ; } return $ prefix . $ suffix ; }
Generate Authorization Code.

@param int    $length
@param string $prefix
@param string $suffix

@return string
Generate Authorization Code .