Skip to content

Commit 4813fb7

Browse files
committed
Remove old references to Resource
1 parent 6ec2347 commit 4813fb7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

Client/AmpArtaxEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ interface AmpArtaxEndpoint extends Endpoint
1515
*
1616
* Implementations may vary depending the status code of the response and the fetch mode used.
1717
*/
18-
public function parseArtaxResponse(Response $response, SerializerInterface $serializer, string $fetchMode = Resource::FETCH_OBJECT): Promise;
18+
public function parseArtaxResponse(Response $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT): Promise;
1919
}

Client/AmpArtaxEndpointTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ trait AmpArtaxEndpointTrait
1414
{
1515
abstract protected function transformResponseBody(string $body, int $status, SerializerInterface $serializer);
1616

17-
public function parseArtaxResponse(Response $response, SerializerInterface $serializer, string $fetchMode = Resource::FETCH_OBJECT): Promise
17+
public function parseArtaxResponse(Response $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT): Promise
1818
{
1919
return call(function () use ($response, $serializer, $fetchMode) {
20-
if ($fetchMode === Resource::FETCH_OBJECT) {
20+
if ($fetchMode === Client::FETCH_OBJECT) {
2121
return $this->transformResponseBody(yield $response->getBody(), $response->getStatus(), $serializer);
2222
}
2323

24-
if ($fetchMode === Resource::FETCH_RESPONSE) {
24+
if ($fetchMode === Client::FETCH_RESPONSE) {
2525
return $response;
2626
}
2727

Client/Psr7HttplugEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ interface Psr7HttplugEndpoint extends Endpoint
1414
*
1515
* Implementations may vary depending the status code of the response and the fetch mode used.
1616
*/
17-
public function parsePSR7Response(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Resource::FETCH_OBJECT);
17+
public function parsePSR7Response(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT);
1818
}

Client/Psr7HttplugEndpointTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ trait Psr7HttplugEndpointTrait
1212
{
1313
abstract protected function transformResponseBody(string $body, int $status, SerializerInterface $serializer);
1414

15-
public function parsePSR7Response(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Resource::FETCH_OBJECT)
15+
public function parsePSR7Response(ResponseInterface $response, SerializerInterface $serializer, string $fetchMode = Client::FETCH_OBJECT)
1616
{
17-
if ($fetchMode === Resource::FETCH_OBJECT) {
17+
if ($fetchMode === Client::FETCH_OBJECT) {
1818
return $this->transformResponseBody((string) $response->getBody(), $response->getStatusCode(), $serializer);
1919
}
2020

21-
if ($fetchMode === Resource::FETCH_RESPONSE) {
21+
if ($fetchMode === Client::FETCH_RESPONSE) {
2222
return $response;
2323
}
2424

0 commit comments

Comments
 (0)