Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ncou committed Dec 31, 2018
1 parent 059f1d8 commit 81f1566
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/HttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getTitle(): string
*
* @return $this
*/
public function setTitle(string $title): ApiExceptionInterface
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
Expand All @@ -58,7 +58,7 @@ public function getDetail(): string
*
* @return $this
*/
public function setDetail(string $detail): ApiExceptionInterface
public function setDetail(string $detail): self
{
$this->detail = $detail;

Expand All @@ -76,7 +76,7 @@ public function getType(): string
*
* @return $this
*/
public function setType(string $uri): ApiExceptionInterface
public function setType(string $uri): self
{
$this->type = $uri;
return $this;
Expand All @@ -93,7 +93,7 @@ public function getInstance(): string
*
* @return $this
*/
public function setInstance(string $uri): ApiExceptionInterface
public function setInstance(string $uri): self
{
$this->instance = $uri;

Expand All @@ -105,7 +105,7 @@ public function setInstance(string $uri): ApiExceptionInterface
*
* @return $this
*/
public function setAdditionalData(array $additionalData): ApiExceptionInterface
public function setAdditionalData(array $additionalData): self
{
$this->additionalData = $additionalData;

Expand All @@ -117,7 +117,7 @@ public function setAdditionalData(array $additionalData): ApiExceptionInterface
* @param mixed $value
* @return ApiExceptionInterface
*/
final public function addAdditionalData(string $key, $value): ApiExceptionInterface
final public function addAdditionalData(string $key, $value): self
{
$this->additionalData[$key] = $value;

Expand Down Expand Up @@ -185,7 +185,7 @@ public function getHeaders(): array
*
* @param array $headers Response headers
*/
public function setHeaders(array $headers): ApiExceptionInterface
public function setHeaders(array $headers): self
{
$this->headers = $headers;

Expand Down

0 comments on commit 81f1566

Please sign in to comment.