Skip to content

Commit

Permalink
refactor: WebhookClient service
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorodriguesroque committed Nov 9, 2024
1 parent d1452a4 commit d99f68b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Services/WebhookClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ public function setUrl(string $url): static
return $this;
}

public function send($method = 'get', $data = [])
/**
* @param string $method
* @param array<string, mixed> $data
* @return mixed
*/
public function send(string $method = 'get', array $data = []): mixed
{
return $this->client->{$method}($this->url, $data);
}
Expand Down

0 comments on commit d99f68b

Please sign in to comment.