Skip to content

Commit

Permalink
Very slight docs improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Aug 30, 2021
1 parent a40ab97 commit c9d806d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,16 @@ Set the Response for the Given Method
#### Parameters:

- ***string*** `$method`
- ***\donatj\MockWebServer\ResponseInterface*** `$response`
- ***\donatj\MockWebServer\ResponseInterface*** `$response`

## Built-In Responses

### Class: \donatj\MockWebServer\Responses\DefaultResponse

The Built-In Default Response.

Results in an HTTP 200 with a JSON encoded version of the incoming Request

### Class: \donatj\MockWebServer\Responses\NotFoundResponse

Basic Built-In 404 Response
4 changes: 4 additions & 0 deletions mddoc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ I would be happy to accept pull requests that correct this.
<file name="src/Response.php"/>
<file name="src/ResponseStack.php"/>
<file name="src/ResponseByMethod.php"/>
<section title="Built-In Responses">
<file name="src/Responses/DefaultResponse.php"/>
<file name="src/Responses/NotFoundResponse.php"/>
</section>
</section>
</docpage>
</section>
Expand Down
4 changes: 4 additions & 0 deletions src/Responses/DefaultResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
use donatj\MockWebServer\RequestInfo;
use donatj\MockWebServer\ResponseInterface;

/**
* The Built-In Default Response.
* Results in an HTTP 200 with a JSON encoded version of the incoming Request
*/
class DefaultResponse implements ResponseInterface {

public function getRef() {
Expand Down
3 changes: 3 additions & 0 deletions src/Responses/NotFoundResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use donatj\MockWebServer\RequestInfo;
use donatj\MockWebServer\ResponseInterface;

/**
* Basic Built-In 404 Response
*/
class NotFoundResponse implements ResponseInterface {

public function getRef() {
Expand Down

0 comments on commit c9d806d

Please sign in to comment.