Skip to content

Commit 9490b16

Browse files
committed
Add WebHook hydrate/serialize methods
1 parent 75c491e commit 9490b16

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/OpenAPI/WebHookInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44

55
interface WebHookInterface
66
{
7+
/**
8+
* @template H
9+
* @param class-string<H> $className
10+
* @return H
11+
*/
12+
public function hydrateWebHook(string $className, array $data) : object;
13+
14+
/**
15+
* @return array{className: class-string, data: mixed}
16+
*/
17+
public function serializeWebHook(object $object) : array;
18+
719
/**
820
* @param array<string, string> $headers
921
* @param array<mixed> $data

0 commit comments

Comments
 (0)