<?php
namespace Fifa\ConnectId\Sdk\Exception;

use Fifa\ConnectId\Sdk\Api\ApiException;
use Fifa\ConnectId\Sdk\Api\Model\ConflictResponseType;

/**
 * Class FifaConflictException
 * @package Fifa\ConnectId\Sdk\Exception
 */
class FifaConflictException extends FifaConnectIdException
{
    /**
     * @var ConflictResponseType
     */
    private $conflictResponseType;

    /**
     * FifaConflictException constructor.
     * @param ApiException $apiException
     * @param ConflictResponseType $conflictResponseType
     * @param null|string $message
     * @param int|null $code
     */
    public function __construct(ApiException $apiException, ConflictResponseType $conflictResponseType, ?string $message = null, ?int $code = null)
    {
        parent::__construct($apiException, $message, $code);
        $this->conflictResponseType = $conflictResponseType;
    }

    /**
     * Getter for Conflict Response Type
     *
     * @return ConflictResponseType
     */
    public function getConflictResponseType(): ConflictResponseType
    {
        return $this->conflictResponseType;
    }
}