public static function get_token($strictness = IGNORE_MISSING) {
        if ($strictness == MUST_EXIST) {
            $registration = self::require_registration();
        } else if (!$registration = self::get_registration()) {
            return null;
        }
        return $registration->token;
    }
public static function get_token($strictness = IGNORE_MISSING) {
        if ($strictness == MUST_EXIST) {
            $registration = self::require_registration();
        } else if (!$registration = self::get_registration()) {
            return null;
        }
        return $registration->token;
    }
public static function get_token ( $ strictness = IGNORE_MISSING ) { if ( $ strictness == MUST_EXIST ) { $ registration = self :: require_registration ( ) ; } else if ( ! $ registration = self :: get_registration ( ) ) { return null ; } return $ registration -> token ; }
Returns registration token

@param int $strictness if set to MUST_EXIST and site is not registered will throw an exception
@return null
@throws moodle_exception
Returns registration token