This repository has been archived by the owner on Apr 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from rodnaph/client-interface
Client Interface
- Loading branch information
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ name: "Continuous Integration" | |
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
push: | ||
branches: | ||
- master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace TheCodingMachine\Gotenberg; | ||
|
||
use Psr\Http\Message\ResponseInterface; | ||
|
||
interface GotenbergClientInterface | ||
{ | ||
/** | ||
* Sends the given documents to the API and returns the response. | ||
*/ | ||
public function post(GotenbergRequestInterface $request): ResponseInterface; | ||
|
||
/** | ||
* Sends the given documents to the API, stores the resulting PDF in the given destination. | ||
*/ | ||
public function store(GotenbergRequestInterface $request, string $destination): void; | ||
} |