generated from DeBoerTool/php-project
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from DeBoerTool/feature
new: docs
- Loading branch information
Showing
5 changed files
with
125 additions
and
25 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
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
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,28 @@ | ||
<?php | ||
|
||
namespace Dbt\ClientFake; | ||
|
||
/** | ||
* An interface that represents the required option for the ClientFake. You can | ||
* simply use the provided ClientFakeOptions object, but if you wish to define | ||
* your own, it must implement this interface. | ||
*/ | ||
interface ClientFakeOptionsInterface | ||
{ | ||
/** | ||
* @param string|array $fragment The URL fragment to append to the base URL. | ||
* If an array is passed in, the first element will be used as the format | ||
* string, and the remaining elements will be used as the arguments. | ||
*/ | ||
public function url(string|array $fragment): string; | ||
|
||
/** | ||
* Get the fully-qualified class name of the service. | ||
*/ | ||
public function service(): string; | ||
|
||
/** | ||
* Get the array of headers to be added to fake requests. | ||
*/ | ||
public function headers(): array; | ||
} |
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