<?php

namespace KupShop\HeurekaCartBundle\Services;

use KupShop\HeurekaCartBundle\Util\Settings;
use Symfony\Component\HttpFoundation\Request;

class HeurekaService
{
    protected Settings $settings;

    public function getResponse(Request $request): array
    {
        return [];
    }

    public function setSettings(Settings $settings)
    {
        $this->settings = $settings;
    }

    protected $response_status = 200;

    public function getResponseStatus(): int
    {
        return $this->response_status;
    }

    public function returnError(int $errorCode, string $errorMessage): array
    {
        $this->response_status = $errorCode;

        return ['id' => -1, 'msg' => $errorMessage];
    }
}
