Skip to content

Commit 5929af2

Browse files
committed
Hydrator rename so it's easier to used externally
1 parent 479aa3c commit 5929af2

File tree

880 files changed

+1767
-1767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

880 files changed

+1767
-1767
lines changed

composer.lock

Lines changed: 10 additions & 10 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ final class Client implements ClientInterface
1111
private readonly \React\Http\Browser $browser;
1212
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
1313
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
14-
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator;
14+
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator;
1515
public function __construct(\ApiClients\Contracts\HTTP\Headers\AuthenticationInterface $authentication, \React\Http\Browser $browser)
1616
{
1717
$this->authentication = $authentication;
1818
$this->browser = new \React\Http\Browser();
1919
$this->requestSchemaValidator = new \League\OpenAPIValidation\Schema\SchemaValidator(\League\OpenAPIValidation\Schema\SchemaValidator::VALIDATE_AS_REQUEST);
2020
$this->responseSchemaValidator = new \League\OpenAPIValidation\Schema\SchemaValidator(\League\OpenAPIValidation\Schema\SchemaValidator::VALIDATE_AS_RESPONSE);
21-
$this->hydrator = new \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper();
21+
$this->hydrator = new \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator();
2222
}
2323
public function meta() : \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Operation\Meta
2424
{

src/OpenAPI/ApiGitHubCom/OptimizedHydratorMapper.php renamed to src/OpenAPI/ApiGitHubCom/Hydrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* @template T
1515
*/
16-
class OptimizedHydratorMapper implements ObjectMapper
16+
class Hydrator implements ObjectMapper
1717
{
1818
private array $hydrationStack = [];
1919
public function __construct() {}

src/OpenAPI/ApiGitHubCom/Operation/Actions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ final class Actions
66
{
77
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
88
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
9-
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator;
10-
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator)
9+
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator;
10+
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator)
1111
{
1212
$this->requestSchemaValidator = $requestSchemaValidator;
1313
$this->responseSchemaValidator = $responseSchemaValidator;

src/OpenAPI/ApiGitHubCom/Operation/Actions/AddCustomLabelsToSelfHostedRunnerForOrg.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class AddCustomLabelsToSelfHostedRunnerForOrg
88
public const OPERATION_MATCH = 'POST /orgs/{org}/actions/runners/{runner_id}/labels';
99
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
1010
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
11-
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator;
11+
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator;
1212
/**The organization name. The name is not case sensitive.**/
1313
private string $org;
1414
/**Unique identifier of the self-hosted runner.**/
@@ -17,7 +17,7 @@ public function operationId() : string
1717
{
1818
return self::OPERATION_ID;
1919
}
20-
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator, string $org, int $runner_id)
20+
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator, string $org, int $runner_id)
2121
{
2222
$this->requestSchemaValidator = $requestSchemaValidator;
2323
$this->responseSchemaValidator = $responseSchemaValidator;

src/OpenAPI/ApiGitHubCom/Operation/Actions/AddCustomLabelsToSelfHostedRunnerForRepo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class AddCustomLabelsToSelfHostedRunnerForRepo
88
public const OPERATION_MATCH = 'POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels';
99
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
1010
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
11-
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator;
11+
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator;
1212
/**The account owner of the repository. The name is not case sensitive.**/
1313
private string $owner;
1414
/**The name of the repository. The name is not case sensitive.**/
@@ -19,7 +19,7 @@ public function operationId() : string
1919
{
2020
return self::OPERATION_ID;
2121
}
22-
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator, string $owner, string $repo, int $runner_id)
22+
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator, string $owner, string $repo, int $runner_id)
2323
{
2424
$this->requestSchemaValidator = $requestSchemaValidator;
2525
$this->responseSchemaValidator = $responseSchemaValidator;

src/OpenAPI/ApiGitHubCom/Operation/Actions/AddSelectedRepoToOrgSecret.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class AddSelectedRepoToOrgSecret
88
public const OPERATION_MATCH = 'PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}';
99
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
1010
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
11-
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator;
11+
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator;
1212
/**The organization name. The name is not case sensitive.**/
1313
private string $org;
1414
/**The name of the secret.**/
@@ -18,7 +18,7 @@ public function operationId() : string
1818
{
1919
return self::OPERATION_ID;
2020
}
21-
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator, string $org, string $secret_name, int $repository_id)
21+
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator, string $org, string $secret_name, int $repository_id)
2222
{
2323
$this->requestSchemaValidator = $requestSchemaValidator;
2424
$this->responseSchemaValidator = $responseSchemaValidator;

src/OpenAPI/ApiGitHubCom/Operation/Actions/AddSelectedRepoToOrgVariable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class AddSelectedRepoToOrgVariable
88
public const OPERATION_MATCH = 'PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}';
99
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
1010
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
11-
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator;
11+
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator;
1212
/**The organization name. The name is not case sensitive.**/
1313
private string $org;
1414
/**The name of the variable.**/
@@ -18,7 +18,7 @@ public function operationId() : string
1818
{
1919
return self::OPERATION_ID;
2020
}
21-
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator, string $org, string $name, int $repository_id)
21+
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator, string $org, string $name, int $repository_id)
2222
{
2323
$this->requestSchemaValidator = $requestSchemaValidator;
2424
$this->responseSchemaValidator = $responseSchemaValidator;

src/OpenAPI/ApiGitHubCom/Operation/Actions/AddSelectedRepoToRequiredWorkflow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class AddSelectedRepoToRequiredWorkflow
88
public const OPERATION_MATCH = 'PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}';
99
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
1010
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
11-
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator;
11+
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator;
1212
/**The organization name. The name is not case sensitive.**/
1313
private string $org;
1414
/**The unique identifier of the required workflow.**/
@@ -19,7 +19,7 @@ public function operationId() : string
1919
{
2020
return self::OPERATION_ID;
2121
}
22-
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator, string $org, int $required_workflow_id, int $repository_id)
22+
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator, string $org, int $required_workflow_id, int $repository_id)
2323
{
2424
$this->requestSchemaValidator = $requestSchemaValidator;
2525
$this->responseSchemaValidator = $responseSchemaValidator;

src/OpenAPI/ApiGitHubCom/Operation/Actions/ApproveWorkflowRun.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ final class ApproveWorkflowRun
88
public const OPERATION_MATCH = 'POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve';
99
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator;
1010
private readonly \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator;
11-
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator;
11+
private readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator;
1212
/**The account owner of the repository. The name is not case sensitive.**/
1313
private string $owner;
1414
/**The name of the repository. The name is not case sensitive.**/
@@ -19,7 +19,7 @@ public function operationId() : string
1919
{
2020
return self::OPERATION_ID;
2121
}
22-
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\OptimizedHydratorMapper $hydrator, string $owner, string $repo, int $run_id)
22+
public function __construct(\League\OpenAPIValidation\Schema\SchemaValidator $requestSchemaValidator, \League\OpenAPIValidation\Schema\SchemaValidator $responseSchemaValidator, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Hydrator $hydrator, string $owner, string $repo, int $run_id)
2323
{
2424
$this->requestSchemaValidator = $requestSchemaValidator;
2525
$this->responseSchemaValidator = $responseSchemaValidator;

0 commit comments

Comments
 (0)