<?php

namespace NoahVet\Reef\Jane\Exception;

class PostVeterinaryEstablishmentUserInvitationConfirmationGoneException extends GoneException
{
    /**
     * @var \Psr\Http\Message\ResponseInterface
     */
    protected $response;

    public function __construct(?\Psr\Http\Message\ResponseInterface $response = null)
    {
        parent::__construct('This resource is no longer available.');
        $this->response = $response;
    }

    public function getResponse(): ?\Psr\Http\Message\ResponseInterface
    {
        return $this->response;
    }
}
