-
Notifications
You must be signed in to change notification settings - Fork 9
/
InvalidLanguageException.php
47 lines (37 loc) · 1.16 KB
/
InvalidLanguageException.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace GW2Treasures\GW2Api\V2\Localization\Exception;
use GW2Treasures\GW2Api\Exception\ApiException;
use Psr\Http\Message\ResponseInterface;
class InvalidLanguageException extends ApiException {
/** @var string $requestLanguage */
protected $requestLanguage;
/** @var string $responseLanguage */
protected $responseLanguage;
/**
* @param string $message
* @param string $requestLanguage
* @param string $responseLanguage
* @param ResponseInterface $response
*/
public function __construct( $message, $requestLanguage, $responseLanguage, ResponseInterface $response ) {
$this->requestLanguage = $requestLanguage;
$this->responseLanguage = $responseLanguage;
parent::__construct( $message, $response );
}
/**
* Get the requested language.
*
* @return string
*/
public function getRequestLanguage() {
return $this->requestLanguage;
}
/**
* Get the language the api responded with.
*
* @return string
*/
public function getResponseLanguage() {
return $this->responseLanguage;
}
}