Skip to content

Commit f255a98

Browse files
committed
feat(laravel-api-problem): add method getInstance
1 parent 76ba543 commit f255a98

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Http/LaravelHttpApiProblem.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ public function getStatusCode(): int
9999
return $this->statusCode;
100100
}
101101

102+
public function getInstance(): string
103+
{
104+
return $this->instance;
105+
}
106+
102107
public function getExtensions(): array
103108
{
104109
return $this->extensions;

src/LaravelApiProblemInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ public function getDetail(): string;
1919
public function getExtensions(): array;
2020

2121
public function getHeaderProblemJson(): string;
22+
23+
public function getInstance(): string;
2224
}

0 commit comments

Comments
 (0)