Code Duplication    Length = 18-18 lines in 2 locations

src/InvalidResponseReceivedException.php 1 location

@@ 5-22 (lines=18) @@
2
3
namespace SlevomatEET;
4
5
class InvalidResponseReceivedException extends \Exception
6
{
7
8
	/** @var \SlevomatEET\EvidenceResponse */
9
	private $response;
10
11
	public function __construct(EvidenceResponse $response, \Throwable $previous = null)
12
	{
13
		parent::__construct(sprintf('Invalid response received. Check response data for errors and warnings.'), 0, $previous);
14
		$this->response = $response;
15
	}
16
17
	public function getResponse(): EvidenceResponse
18
	{
19
		return $this->response;
20
	}
21
22
}
23

src/InvalidResponseWithoutFikException.php 1 location

@@ 5-22 (lines=18) @@
2
3
namespace SlevomatEET;
4
5
class InvalidResponseWithoutFikException extends \Exception
6
{
7
8
	/** @var \SlevomatEET\EvidenceResponse */
9
	private $response;
10
11
	public function __construct(EvidenceResponse $response, \Throwable $previous = null)
12
	{
13
		parent::__construct('Missing FIK in response', 0, $previous);
14
		$this->response = $response;
15
	}
16
17
	public function getResponse(): EvidenceResponse
18
	{
19
		return $this->response;
20
	}
21
22
}
23