Skip to content

Commit

Permalink
feat(methods): adds getter for method and payload properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nahime0 committed Dec 6, 2023
1 parent 9438053 commit 7fde60e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,24 @@ public function post(array $payload): self
return $this;
}

/**
* Getter for the method property
*/
public function method(): string
{
return $this->method;
}

/**
* Getter for the payload property
*
* @return array<string, mixed>
*/
public function payload(): array
{
return $this->payload;
}

/**
* Specifies that run should run with the given number of concurrent requests.
*/
Expand Down

0 comments on commit 7fde60e

Please sign in to comment.