????

Your IP : 216.73.217.84


Current Path : /home/arabianr/public_html/wp-content/plugins/simplybook/app/Exceptions/
Upload File :
Current File : /home/arabianr/public_html/wp-content/plugins/simplybook/app/Exceptions/ApiException.php

<?php

namespace SimplyBook\Exceptions;

class ApiException extends \Exception
{
    protected array $data = [];
    protected int $statusCode = 400;

    public function setResponseCode(int $code): ApiException
    {
        $this->statusCode = $code;
        return $this;
    }

    public function getResponseCode(): int
    {
        return $this->statusCode;
    }

    public function setData(array $data): ApiException
    {
        $this->data = $data;
        return $this;
    }

    public function getData(): array
    {
        return $this->data;
    }
}