Skip to content

Commit 66f95e1

Browse files
authored
Generate the property type for generated objects (#1467)
1 parent a3bbb15 commit 66f95e1

17 files changed

+86
-0
lines changed

src/Exception/ResourceAlreadyExistsException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ final class ResourceAlreadyExistsException extends ClientException
1212
{
1313
/**
1414
* The ID of the resource that caused the exception.
15+
*
16+
* @var string|null
1517
*/
1618
private $resourceId;
1719

1820
/**
1921
* The ARN of the resource that caused the exception.
22+
*
23+
* @var string|null
2024
*/
2125
private $resourceArn;
2226

src/Result/CreateThingGroupResponse.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ class CreateThingGroupResponse extends Result
99
{
1010
/**
1111
* The thing group name.
12+
*
13+
* @var string|null
1214
*/
1315
private $thingGroupName;
1416

1517
/**
1618
* The thing group ARN.
19+
*
20+
* @var string|null
1721
*/
1822
private $thingGroupArn;
1923

2024
/**
2125
* The thing group ID.
26+
*
27+
* @var string|null
2228
*/
2329
private $thingGroupId;
2430

src/Result/CreateThingResponse.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ class CreateThingResponse extends Result
1212
{
1313
/**
1414
* The name of the new thing.
15+
*
16+
* @var string|null
1517
*/
1618
private $thingName;
1719

1820
/**
1921
* The ARN of the new thing.
22+
*
23+
* @var string|null
2024
*/
2125
private $thingArn;
2226

2327
/**
2428
* The thing ID.
29+
*
30+
* @var string|null
2531
*/
2632
private $thingId;
2733

src/Result/CreateThingTypeResponse.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ class CreateThingTypeResponse extends Result
1212
{
1313
/**
1414
* The name of the thing type.
15+
*
16+
* @var string|null
1517
*/
1618
private $thingTypeName;
1719

1820
/**
1921
* The Amazon Resource Name (ARN) of the thing type.
22+
*
23+
* @var string|null
2024
*/
2125
private $thingTypeArn;
2226

2327
/**
2428
* The thing type ID.
29+
*
30+
* @var string|null
2531
*/
2632
private $thingTypeId;
2733

src/Result/ListThingGroupsForThingResponse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ class ListThingGroupsForThingResponse extends Result implements \IteratorAggrega
1616
{
1717
/**
1818
* The thing groups.
19+
*
20+
* @var GroupNameAndArn[]
1921
*/
2022
private $thingGroups;
2123

2224
/**
2325
* The token to use to get the next set of results, or **null** if there are no additional results.
26+
*
27+
* @var string|null
2428
*/
2529
private $nextToken;
2630

src/Result/ListThingGroupsResponse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ class ListThingGroupsResponse extends Result implements \IteratorAggregate
1616
{
1717
/**
1818
* The thing groups.
19+
*
20+
* @var GroupNameAndArn[]
1921
*/
2022
private $thingGroups;
2123

2224
/**
2325
* The token to use to get the next set of results. Will not be returned if operation has returned all results.
26+
*
27+
* @var string|null
2428
*/
2529
private $nextToken;
2630

src/Result/ListThingTypesResponse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ class ListThingTypesResponse extends Result implements \IteratorAggregate
2020
{
2121
/**
2222
* The thing types.
23+
*
24+
* @var ThingTypeDefinition[]
2325
*/
2426
private $thingTypes;
2527

2628
/**
2729
* The token for the next set of results. Will not be returned if operation has returned all results.
30+
*
31+
* @var string|null
2832
*/
2933
private $nextToken;
3034

src/Result/ListThingsInThingGroupResponse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ class ListThingsInThingGroupResponse extends Result implements \IteratorAggregat
1515
{
1616
/**
1717
* The things in the specified thing group.
18+
*
19+
* @var string[]
1820
*/
1921
private $things;
2022

2123
/**
2224
* The token to use to get the next set of results, or **null** if there are no additional results.
25+
*
26+
* @var string|null
2327
*/
2428
private $nextToken;
2529

src/Result/ListThingsResponse.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ class ListThingsResponse extends Result implements \IteratorAggregate
1818
{
1919
/**
2020
* The things.
21+
*
22+
* @var ThingAttribute[]
2123
*/
2224
private $things;
2325

2426
/**
2527
* The token to use to get the next set of results. Will not be returned if operation has returned all results.
28+
*
29+
* @var string|null
2630
*/
2731
private $nextToken;
2832

src/ValueObject/AttributePayload.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ final class AttributePayload
1111
* A JSON string containing up to three key-value pair in JSON format. For example:.
1212
*
1313
* `{\"attributes\":{\"string1\":\"string2\"}}`
14+
*
15+
* @var array<string, string>|null
1416
*/
1517
private $attributes;
1618

@@ -21,6 +23,8 @@ final class AttributePayload
2123
* To remove an attribute, call `UpdateThing` with an empty attribute value.
2224
*
2325
* > The `merge` attribute is only valid when calling `UpdateThing` or `UpdateThingGroup`.
26+
*
27+
* @var bool|null
2428
*/
2529
private $merge;
2630

src/ValueObject/GroupNameAndArn.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ final class GroupNameAndArn
99
{
1010
/**
1111
* The group name.
12+
*
13+
* @var string|null
1214
*/
1315
private $groupName;
1416

1517
/**
1618
* The group ARN.
19+
*
20+
* @var string|null
1721
*/
1822
private $groupArn;
1923

src/ValueObject/Tag.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ final class Tag
1111
{
1212
/**
1313
* The tag's key.
14+
*
15+
* @var string
1416
*/
1517
private $key;
1618

1719
/**
1820
* The tag's value.
21+
*
22+
* @var string|null
1923
*/
2024
private $value;
2125

src/ValueObject/ThingAttribute.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,36 @@ final class ThingAttribute
99
{
1010
/**
1111
* The name of the thing.
12+
*
13+
* @var string|null
1214
*/
1315
private $thingName;
1416

1517
/**
1618
* The name of the thing type, if the thing has been associated with a type.
19+
*
20+
* @var string|null
1721
*/
1822
private $thingTypeName;
1923

2024
/**
2125
* The thing ARN.
26+
*
27+
* @var string|null
2228
*/
2329
private $thingArn;
2430

2531
/**
2632
* A list of thing attributes which are name-value pairs.
33+
*
34+
* @var array<string, string>|null
2735
*/
2836
private $attributes;
2937

3038
/**
3139
* The version of the thing record in the registry.
40+
*
41+
* @var int|null
3242
*/
3343
private $version;
3444

src/ValueObject/ThingGroupProperties.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ final class ThingGroupProperties
99
{
1010
/**
1111
* The thing group description.
12+
*
13+
* @var string|null
1214
*/
1315
private $thingGroupDescription;
1416

1517
/**
1618
* The thing group attributes in JSON format.
19+
*
20+
* @var AttributePayload|null
1721
*/
1822
private $attributePayload;
1923

src/ValueObject/ThingTypeDefinition.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,30 @@ final class ThingTypeDefinition
99
{
1010
/**
1111
* The name of the thing type.
12+
*
13+
* @var string|null
1214
*/
1315
private $thingTypeName;
1416

1517
/**
1618
* The thing type ARN.
19+
*
20+
* @var string|null
1721
*/
1822
private $thingTypeArn;
1923

2024
/**
2125
* The ThingTypeProperties for the thing type.
26+
*
27+
* @var ThingTypeProperties|null
2228
*/
2329
private $thingTypeProperties;
2430

2531
/**
2632
* The ThingTypeMetadata contains additional information about the thing type including: creation date and time, a value
2733
* indicating whether the thing type is deprecated, and a date and time when it was deprecated.
34+
*
35+
* @var ThingTypeMetadata|null
2836
*/
2937
private $thingTypeMetadata;
3038

src/ValueObject/ThingTypeMetadata.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@ final class ThingTypeMetadata
1010
{
1111
/**
1212
* Whether the thing type is deprecated. If **true**, no new things could be associated with this type.
13+
*
14+
* @var bool|null
1315
*/
1416
private $deprecated;
1517

1618
/**
1719
* The date and time when the thing type was deprecated.
20+
*
21+
* @var \DateTimeImmutable|null
1822
*/
1923
private $deprecationDate;
2024

2125
/**
2226
* The date and time when the thing type was created.
27+
*
28+
* @var \DateTimeImmutable|null
2329
*/
2430
private $creationDate;
2531

src/ValueObject/ThingTypeProperties.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ final class ThingTypeProperties
1010
{
1111
/**
1212
* The description of the thing type.
13+
*
14+
* @var string|null
1315
*/
1416
private $thingTypeDescription;
1517

1618
/**
1719
* A list of searchable thing attribute names.
20+
*
21+
* @var string[]|null
1822
*/
1923
private $searchableAttributes;
2024

0 commit comments

Comments
 (0)