Skip to content

Commit

Permalink
Merge pull request #29 from Sammyjo20/fix/updated-interface
Browse files Browse the repository at this point in the history
Updated interfaces
  • Loading branch information
Sammyjo20 authored Feb 5, 2022
2 parents b1b34e5 + 1922da7 commit 69e2bff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Interfaces/SaloonConnectorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@ public function addResponseInterceptor(callable $function): void;

public function getResponseInterceptors(): array;

public function getRegisteredRequests(): array;

public function requestExists(string $method): bool;

public function boot(): void;
}
10 changes: 8 additions & 2 deletions src/Interfaces/SaloonRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@

interface SaloonRequestInterface
{
public function boot(): void;

public function getMethod(): ?string;

public function getResponseClass(): ?string;

public function getConnector(): ?SaloonConnector;

public function setLoadedConnector(SaloonConnector $connector): self;

public function getFullRequestUrl(): string;

public function traitExistsOnConnector(string $trait): bool;

public function defineEndpoint(): string;

public function defaultHeaders(): array;
Expand All @@ -29,6 +37,4 @@ public function getHandlers(): array;
public function addResponseInterceptor(callable $function): void;

public function getResponseInterceptors(): array;

public function boot(): void;
}

0 comments on commit 69e2bff

Please sign in to comment.