Skip to content

Commit 058ffc0

Browse files
committed
Take the first of all any one ofs
1 parent 919e509 commit 058ffc0

File tree

733 files changed

+63031
-163555
lines changed

Some content is hidden

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

733 files changed

+63031
-163555
lines changed

src/Hydrator/Operation/Admin/Tokens.php

Lines changed: 183 additions & 1412 deletions
Large diffs are not rendered by default.

src/Hydrator/Operation/Admin/Users/CbUsernameRcb/Authorizations.php

Lines changed: 183 additions & 1412 deletions
Large diffs are not rendered by default.

src/Hydrator/Operation/App.php

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

src/Hydrator/Operation/App/Hook/Deliveries.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -846,14 +846,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
846846
if ($value === null) {
847847
goto after_value;
848848
}
849-
static $valueSerializer0;
850-
851-
if ($valueSerializer0 === null) {
852-
$valueSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
853-
));
854-
}
855-
856-
$value = $valueSerializer0->serialize($value, $this);
857849
after_value: $result['value'] = $value;
858850

859851

src/Hydrator/Operation/App/Hook/Deliveries/CbDeliveryIdRcb.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,14 +1061,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
10611061
if ($value === null) {
10621062
goto after_value;
10631063
}
1064-
static $valueSerializer0;
1065-
1066-
if ($valueSerializer0 === null) {
1067-
$valueSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
1068-
));
1069-
}
1070-
1071-
$value = $valueSerializer0->serialize($value, $this);
10721064
after_value: $result['value'] = $value;
10731065

10741066

src/Hydrator/Operation/App/Hook/Deliveries/CbDeliveryIdRcb/Attempts.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -604,14 +604,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
604604
if ($value === null) {
605605
goto after_value;
606606
}
607-
static $valueSerializer0;
608-
609-
if ($valueSerializer0 === null) {
610-
$valueSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
611-
));
612-
}
613-
614-
$value = $valueSerializer0->serialize($value, $this);
615607
after_value: $result['value'] = $value;
616608

617609

src/Hydrator/Operation/App/InstallationRequests.php

Lines changed: 2 additions & 225 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public function hydrateObject(string $className, array $payload): object
2424
{
2525
return match($className) {
2626
'ApiClients\Client\GitHubAE\Schema\IntegrationInstallationRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️IntegrationInstallationRequest($payload),
27-
'ApiClients\Client\GitHubAE\Schema\Enterprise' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Enterprise($payload),
2827
'ApiClients\Client\GitHubAE\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SimpleUser($payload),
2928
'ApiClients\Client\GitHubAE\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️BasicError($payload),
3029
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -70,7 +69,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️In
7069
if (is_array($value)) {
7170
try {
7271
$this->hydrationStack[] = 'account';
73-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Enterprise($value);
72+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SimpleUser($value);
7473
} finally {
7574
array_pop($this->hydrationStack);
7675
}
@@ -127,138 +126,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️In
127126
}
128127

129128

130-
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Enterprise(array $payload): \ApiClients\Client\GitHubAE\Schema\Enterprise
131-
{
132-
$properties = [];
133-
$missingFields = [];
134-
try {
135-
136-
$value = $payload['description'] ?? null;
137-
138-
if ($value === null) {
139-
$properties['description'] = null;
140-
goto after_description;
141-
}
142-
143-
$properties['description'] = $value;
144-
145-
after_description:
146-
147-
$value = $payload['html_url'] ?? null;
148-
149-
if ($value === null) {
150-
$properties['html_url'] = null;
151-
goto after_html_url;
152-
}
153-
154-
$properties['html_url'] = $value;
155-
156-
after_html_url:
157-
158-
$value = $payload['website_url'] ?? null;
159-
160-
if ($value === null) {
161-
$properties['website_url'] = null;
162-
goto after_website_url;
163-
}
164-
165-
$properties['website_url'] = $value;
166-
167-
after_website_url:
168-
169-
$value = $payload['id'] ?? null;
170-
171-
if ($value === null) {
172-
$properties['id'] = null;
173-
goto after_id;
174-
}
175-
176-
$properties['id'] = $value;
177-
178-
after_id:
179-
180-
$value = $payload['node_id'] ?? null;
181-
182-
if ($value === null) {
183-
$properties['node_id'] = null;
184-
goto after_node_id;
185-
}
186-
187-
$properties['node_id'] = $value;
188-
189-
after_node_id:
190-
191-
$value = $payload['name'] ?? null;
192-
193-
if ($value === null) {
194-
$properties['name'] = null;
195-
goto after_name;
196-
}
197-
198-
$properties['name'] = $value;
199-
200-
after_name:
201-
202-
$value = $payload['slug'] ?? null;
203-
204-
if ($value === null) {
205-
$properties['slug'] = null;
206-
goto after_slug;
207-
}
208-
209-
$properties['slug'] = $value;
210-
211-
after_slug:
212-
213-
$value = $payload['created_at'] ?? null;
214-
215-
if ($value === null) {
216-
$properties['created_at'] = null;
217-
goto after_created_at;
218-
}
219-
220-
$properties['created_at'] = $value;
221-
222-
after_created_at:
223-
224-
$value = $payload['updated_at'] ?? null;
225-
226-
if ($value === null) {
227-
$properties['updated_at'] = null;
228-
goto after_updated_at;
229-
}
230-
231-
$properties['updated_at'] = $value;
232-
233-
after_updated_at:
234-
235-
$value = $payload['avatar_url'] ?? null;
236-
237-
if ($value === null) {
238-
$properties['avatar_url'] = null;
239-
goto after_avatar_url;
240-
}
241-
242-
$properties['avatar_url'] = $value;
243-
244-
after_avatar_url:
245-
246-
} catch (\Throwable $exception) {
247-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\Enterprise', $exception, stack: $this->hydrationStack);
248-
}
249-
250-
if (count($missingFields) > 0) {
251-
throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubAE\Schema\Enterprise::class, $missingFields, stack: $this->hydrationStack);
252-
}
253-
254-
try {
255-
return new \ApiClients\Client\GitHubAE\Schema\Enterprise(...$properties);
256-
} catch (\Throwable $exception) {
257-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\Enterprise', $exception, stack: $this->hydrationStack);
258-
}
259-
}
260-
261-
262129
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SimpleUser(array $payload): \ApiClients\Client\GitHubAE\Schema\SimpleUser
263130
{
264131
$properties = [];
@@ -589,7 +456,6 @@ public function serializeObject(object $object): mixed
589456
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
590457
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
591458
'ApiClients\Client\GitHubAE\Schema\IntegrationInstallationRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️IntegrationInstallationRequest($object),
592-
'ApiClients\Client\GitHubAE\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Enterprise($object),
593459
'ApiClients\Client\GitHubAE\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SimpleUser($object),
594460
'ApiClients\Client\GitHubAE\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️BasicError($object),
595461
default => throw new \LogicException('No serialization defined for $className'),
@@ -687,7 +553,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
687553
if ($account === null) {
688554
goto after_account;
689555
}
690-
$account = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Enterprise($account);
556+
$account = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SimpleUser($account);
691557
after_account: $result['account'] = $account;
692558

693559

@@ -712,95 +578,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
712578
}
713579

714580

715-
private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Enterprise(mixed $object): mixed
716-
{
717-
\assert($object instanceof \ApiClients\Client\GitHubAE\Schema\Enterprise);
718-
$result = [];
719-
720-
$description = $object->description;
721-
722-
if ($description === null) {
723-
goto after_description;
724-
}
725-
after_description: $result['description'] = $description;
726-
727-
728-
$html_url = $object->html_url;
729-
730-
if ($html_url === null) {
731-
goto after_html_url;
732-
}
733-
after_html_url: $result['html_url'] = $html_url;
734-
735-
736-
$website_url = $object->website_url;
737-
738-
if ($website_url === null) {
739-
goto after_website_url;
740-
}
741-
after_website_url: $result['website_url'] = $website_url;
742-
743-
744-
$id = $object->id;
745-
746-
if ($id === null) {
747-
goto after_id;
748-
}
749-
after_id: $result['id'] = $id;
750-
751-
752-
$node_id = $object->node_id;
753-
754-
if ($node_id === null) {
755-
goto after_node_id;
756-
}
757-
after_node_id: $result['node_id'] = $node_id;
758-
759-
760-
$name = $object->name;
761-
762-
if ($name === null) {
763-
goto after_name;
764-
}
765-
after_name: $result['name'] = $name;
766-
767-
768-
$slug = $object->slug;
769-
770-
if ($slug === null) {
771-
goto after_slug;
772-
}
773-
after_slug: $result['slug'] = $slug;
774-
775-
776-
$created_at = $object->created_at;
777-
778-
if ($created_at === null) {
779-
goto after_created_at;
780-
}
781-
after_created_at: $result['created_at'] = $created_at;
782-
783-
784-
$updated_at = $object->updated_at;
785-
786-
if ($updated_at === null) {
787-
goto after_updated_at;
788-
}
789-
after_updated_at: $result['updated_at'] = $updated_at;
790-
791-
792-
$avatar_url = $object->avatar_url;
793-
794-
if ($avatar_url === null) {
795-
goto after_avatar_url;
796-
}
797-
after_avatar_url: $result['avatar_url'] = $avatar_url;
798-
799-
800-
return $result;
801-
}
802-
803-
804581
private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SimpleUser(mixed $object): mixed
805582
{
806583
\assert($object instanceof \ApiClients\Client\GitHubAE\Schema\SimpleUser);

0 commit comments

Comments
 (0)