Skip to content

Commit aa6350b

Browse files
committed
Rename to
1 parent 46a38ee commit aa6350b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/SparkPost/APIResponseException.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class APIResponseException extends \Exception {
1616
/**
1717
* @var string
1818
*/
19-
protected $apiMessageDescription;
19+
protected $apiDescription;
2020

2121
/**
2222
* Construct the exception.
2323
*/
24-
public function __construct($message = "", $code = 0, $apiMessage = "", $apiCode = 0, $apiMessageDescription = "") {
24+
public function __construct($message = "", $code = 0, $apiMessage = "", $apiCode = 0, $apiDescription = "") {
2525
$this->apiMessage = $apiMessage;
2626
$this->apiCode = $apiCode;
27-
$this->apiMessageDescription = $apiMessageDescription;
27+
$this->apiDescription = $apiDescription;
2828
parent::__construct($message, $code);
2929
}
3030

@@ -45,11 +45,11 @@ public function getAPICode() {
4545
}
4646

4747
/**
48-
* Gets the Exception message
49-
* @return string the Exception message as a string.
48+
* Gets the Exception description
49+
* @return string the Exception description as a string.
5050
*/
51-
public function getAPIMessageDescription() {
52-
return $this->apiMessageDescription;
51+
public function getAPIDescription() {
52+
return $this->apiDescription;
5353
}
5454

5555
}

0 commit comments

Comments
 (0)