Skip to content

Commit 479aa3c

Browse files
committed
Hydrator templates
1 parent 8d0b426 commit 479aa3c

File tree

6 files changed

+80
-71
lines changed

6 files changed

+80
-71
lines changed

composer.lock

Lines changed: 62 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/OpenAPI/ApiGitHubCom/Client.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace ApiClients\Client\Github\OpenAPI\ApiGitHubCom;
44

5+
/**
6+
* @template H
7+
*/
58
final class Client implements ClientInterface
69
{
710
private readonly \ApiClients\Contracts\HTTP\Headers\AuthenticationInterface $authentication;
@@ -11146,6 +11149,10 @@ public function callAsync(string $call, array $params = array())
1114611149
}
1114711150
throw new \InvalidArgumentException();
1114811151
}
11152+
/**
11153+
* @param class-string<H> $className
11154+
* @return H
11155+
*/
1114911156
public function hydrateObject(string $className, array $data) : object
1115011157
{
1115111158
return $this->hydrator->hydrateObject($className, $data);

src/OpenAPI/ApiGitHubCom/ClientInterface.php

Lines changed: 7 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)