Skip to content

Commit b297728

Browse files
authored
Generate the property type for generated objects (#1467)
1 parent 5b08520 commit b297728

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

src/Result/PutEventsResponse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class PutEventsResponse extends Result
1010
{
1111
/**
1212
* The number of failed entries.
13+
*
14+
* @var int|null
1315
*/
1416
private $failedEntryCount;
1517

@@ -18,6 +20,8 @@ class PutEventsResponse extends Result
1820
* ID in it. Otherwise, you can use the error code and error message to identify the problem with the entry.
1921
*
2022
* For each record, the index of the response element is the same as the index in the request array.
23+
*
24+
* @var PutEventsResultEntry[]
2125
*/
2226
private $entries;
2327

src/ValueObject/PutEventsRequestEntry.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,37 @@ final class PutEventsRequestEntry
1313
*
1414
* [^1]: https://www.rfc-editor.org/rfc/rfc3339.txt
1515
* [^2]: https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEvents.html
16+
*
17+
* @var \DateTimeImmutable|null
1618
*/
1719
private $time;
1820

1921
/**
2022
* The source of the event.
23+
*
24+
* @var string|null
2125
*/
2226
private $source;
2327

2428
/**
2529
* Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any
2630
* number, including zero, may be present.
31+
*
32+
* @var string[]|null
2733
*/
2834
private $resources;
2935

3036
/**
3137
* Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
38+
*
39+
* @var string|null
3240
*/
3341
private $detailType;
3442

3543
/**
3644
* A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested subobjects.
45+
*
46+
* @var string|null
3747
*/
3848
private $detail;
3949

@@ -44,6 +54,8 @@ final class PutEventsRequestEntry
4454
* > If you're using a global endpoint with a custom bus, you must enter the name, not the ARN, of the event bus in
4555
* > either the primary or secondary Region here and the corresponding event bus in the other Region will be determined
4656
* > based on the endpoint referenced by the `EndpointId`.
57+
*
58+
* @var string|null
4759
*/
4860
private $eventBusName;
4961

@@ -54,6 +66,8 @@ final class PutEventsRequestEntry
5466
* To learn more about X-Ray trace headers, see Tracing header [^1] in the X-Ray Developer Guide.
5567
*
5668
* [^1]: https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader
69+
*
70+
* @var string|null
5771
*/
5872
private $traceHeader;
5973

src/ValueObject/PutEventsResultEntry.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ final class PutEventsResultEntry
1212
{
1313
/**
1414
* The ID of the event.
15+
*
16+
* @var string|null
1517
*/
1618
private $eventId;
1719

1820
/**
1921
* The error code that indicates why the event submission failed.
22+
*
23+
* @var string|null
2024
*/
2125
private $errorCode;
2226

2327
/**
2428
* The error message that explains why the event submission failed.
29+
*
30+
* @var string|null
2531
*/
2632
private $errorMessage;
2733

0 commit comments

Comments
 (0)