Skip to content
Snippets Groups Projects
BaseResponseService.php 364 B
Newer Older
i.vasilenko@iq-adv.ru's avatar
i.vasilenko@iq-adv.ru committed
<?php

namespace App\Service\Response;

use App\Response\ApiResponse;

abstract class BaseResponseService implements ResponseServiceInterface
{
    private ApiResponse $response;

i.vasilenko@iq-adv.ru's avatar
i.vasilenko@iq-adv.ru committed
    public function __construct()
i.vasilenko@iq-adv.ru's avatar
i.vasilenko@iq-adv.ru committed
    {
        $this->response = new ApiResponse();
    }

    public function getResponse(): ApiResponse
    {
        return $this->response;
    }
}