Skip to content

Commit 2469db6

Browse files
authored
Move Result docbloc from property to getter (#266)
1 parent 861b445 commit 2469db6

File tree

6 files changed

+72
-81
lines changed

6 files changed

+72
-81
lines changed

src/Result/AddLayerVersionPermissionResponse.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88

99
class AddLayerVersionPermissionResponse extends Result
1010
{
11-
/**
12-
* The permission statement.
13-
*/
1411
private $Statement;
1512

13+
private $RevisionId;
14+
1615
/**
1716
* A unique identifier for the current revision of the policy.
1817
*/
19-
private $RevisionId;
20-
2118
public function getRevisionId(): ?string
2219
{
2320
$this->initialize();
2421

2522
return $this->RevisionId;
2623
}
2724

25+
/**
26+
* The permission statement.
27+
*/
2828
public function getStatement(): ?string
2929
{
3030
$this->initialize();

src/Result/InvocationResponse.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,63 +8,63 @@
88

99
class InvocationResponse extends Result
1010
{
11-
/**
12-
* The HTTP status code is in the 200 range for a successful request. For the `RequestResponse` invocation type, this
13-
* status code is 200. For the `Event` invocation type, this status code is 202. For the `DryRun` invocation type, the
14-
* status code is 204.
15-
*/
1611
private $StatusCode;
1712

18-
/**
19-
* If present, indicates that an error occurred during function execution. Details about the error are included in the
20-
* response payload.
21-
*/
2213
private $FunctionError;
2314

24-
/**
25-
* The last 4 KB of the execution log, which is base64 encoded.
26-
*/
2715
private $LogResult;
2816

29-
/**
30-
* The response from the function, or an error object.
31-
*/
3217
private $Payload;
3318

19+
private $ExecutedVersion;
20+
3421
/**
3522
* The version of the function that executed. When you invoke a function with an alias, this indicates which version the
3623
* alias resolved to.
3724
*/
38-
private $ExecutedVersion;
39-
4025
public function getExecutedVersion(): ?string
4126
{
4227
$this->initialize();
4328

4429
return $this->ExecutedVersion;
4530
}
4631

32+
/**
33+
* If present, indicates that an error occurred during function execution. Details about the error are included in the
34+
* response payload.
35+
*/
4736
public function getFunctionError(): ?string
4837
{
4938
$this->initialize();
5039

5140
return $this->FunctionError;
5241
}
5342

43+
/**
44+
* The last 4 KB of the execution log, which is base64 encoded.
45+
*/
5446
public function getLogResult(): ?string
5547
{
5648
$this->initialize();
5749

5850
return $this->LogResult;
5951
}
6052

53+
/**
54+
* The response from the function, or an error object.
55+
*/
6156
public function getPayload(): ?string
6257
{
6358
$this->initialize();
6459

6560
return $this->Payload;
6661
}
6762

63+
/**
64+
* The HTTP status code is in the 200 range for a successful request. For the `RequestResponse` invocation type, this
65+
* status code is 200. For the `Event` invocation type, this status code is 202. For the `DryRun` invocation type, the
66+
* status code is 204.
67+
*/
6868
public function getStatusCode(): ?int
6969
{
7070
$this->initialize();

src/Result/LayerVersionContentOutput.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,10 @@
44

55
class LayerVersionContentOutput
66
{
7-
/**
8-
* A link to the layer archive in Amazon S3 that is valid for 10 minutes.
9-
*/
107
private $Location;
118

12-
/**
13-
* The SHA-256 hash of the layer archive.
14-
*/
159
private $CodeSha256;
1610

17-
/**
18-
* The size of the layer archive in bytes.
19-
*/
2011
private $CodeSize;
2112

2213
/**
@@ -38,16 +29,25 @@ public static function create($input): self
3829
return $input instanceof self ? $input : new self($input);
3930
}
4031

32+
/**
33+
* The SHA-256 hash of the layer archive.
34+
*/
4135
public function getCodeSha256(): ?string
4236
{
4337
return $this->CodeSha256;
4438
}
4539

40+
/**
41+
* The size of the layer archive in bytes.
42+
*/
4643
public function getCodeSize(): ?string
4744
{
4845
return $this->CodeSize;
4946
}
5047

48+
/**
49+
* A link to the layer archive in Amazon S3 that is valid for 10 minutes.
50+
*/
5151
public function getLocation(): ?string
5252
{
5353
return $this->Location;

src/Result/LayerVersionsListItem.php

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,16 @@
44

55
class LayerVersionsListItem
66
{
7-
/**
8-
* The ARN of the layer version.
9-
*/
107
private $LayerVersionArn;
118

12-
/**
13-
* The version number.
14-
*/
159
private $Version;
1610

17-
/**
18-
* The description of the version.
19-
*/
2011
private $Description;
2112

22-
/**
23-
* The date that the version was created, in ISO 8601 format. For example, `2018-11-27T15:10:45.123+0000`.
24-
*/
2513
private $CreatedDate;
2614

27-
/**
28-
* The layer's compatible runtimes.
29-
*/
3015
private $CompatibleRuntimes = [];
3116

32-
/**
33-
* The layer's open-source license.
34-
*/
3517
private $LicenseInfo;
3618

3719
/**
@@ -67,26 +49,41 @@ public function getCompatibleRuntimes(): array
6749
return $this->CompatibleRuntimes;
6850
}
6951

52+
/**
53+
* The date that the version was created, in ISO 8601 format. For example, `2018-11-27T15:10:45.123+0000`.
54+
*/
7055
public function getCreatedDate(): ?string
7156
{
7257
return $this->CreatedDate;
7358
}
7459

60+
/**
61+
* The description of the version.
62+
*/
7563
public function getDescription(): ?string
7664
{
7765
return $this->Description;
7866
}
7967

68+
/**
69+
* The ARN of the layer version.
70+
*/
8071
public function getLayerVersionArn(): ?string
8172
{
8273
return $this->LayerVersionArn;
8374
}
8475

76+
/**
77+
* The layer's open-source license.
78+
*/
8579
public function getLicenseInfo(): ?string
8680
{
8781
return $this->LicenseInfo;
8882
}
8983

84+
/**
85+
* The version number.
86+
*/
9087
public function getVersion(): ?string
9188
{
9289
return $this->Version;

src/Result/ListLayerVersionsResponse.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@
1010

1111
class ListLayerVersionsResponse extends Result implements \IteratorAggregate
1212
{
13-
/**
14-
* A pagination token returned when the response doesn't contain all versions.
15-
*/
1613
private $NextMarker;
1714

18-
/**
19-
* A list of versions.
20-
*/
2115
private $LayerVersions = [];
2216

2317
/**
@@ -99,6 +93,9 @@ public function getLayerVersions(bool $currentPageOnly = false): iterable
9993
}
10094
}
10195

96+
/**
97+
* A pagination token returned when the response doesn't contain all versions.
98+
*/
10299
public function getNextMarker(): ?string
103100
{
104101
$this->initialize();

src/Result/PublishLayerVersionResponse.php

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,20 @@
88

99
class PublishLayerVersionResponse extends Result
1010
{
11-
/**
12-
* Details about the layer version.
13-
*/
1411
private $Content;
1512

16-
/**
17-
* The ARN of the layer.
18-
*/
1913
private $LayerArn;
2014

21-
/**
22-
* The ARN of the layer version.
23-
*/
2415
private $LayerVersionArn;
2516

26-
/**
27-
* The description of the version.
28-
*/
2917
private $Description;
3018

31-
/**
32-
* The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
33-
*
34-
* @see https://www.w3.org/TR/NOTE-datetime
35-
*/
3619
private $CreatedDate;
3720

38-
/**
39-
* The version number.
40-
*/
4121
private $Version;
4222

43-
/**
44-
* The layer's compatible runtimes.
45-
*/
4623
private $CompatibleRuntimes = [];
4724

48-
/**
49-
* The layer's software license.
50-
*/
5125
private $LicenseInfo;
5226

5327
/**
@@ -60,48 +34,71 @@ public function getCompatibleRuntimes(): array
6034
return $this->CompatibleRuntimes;
6135
}
6236

37+
/**
38+
* Details about the layer version.
39+
*/
6340
public function getContent(): ?LayerVersionContentOutput
6441
{
6542
$this->initialize();
6643

6744
return $this->Content;
6845
}
6946

47+
/**
48+
* The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
49+
*
50+
* @see https://www.w3.org/TR/NOTE-datetime
51+
*/
7052
public function getCreatedDate(): ?string
7153
{
7254
$this->initialize();
7355

7456
return $this->CreatedDate;
7557
}
7658

59+
/**
60+
* The description of the version.
61+
*/
7762
public function getDescription(): ?string
7863
{
7964
$this->initialize();
8065

8166
return $this->Description;
8267
}
8368

69+
/**
70+
* The ARN of the layer.
71+
*/
8472
public function getLayerArn(): ?string
8573
{
8674
$this->initialize();
8775

8876
return $this->LayerArn;
8977
}
9078

79+
/**
80+
* The ARN of the layer version.
81+
*/
9182
public function getLayerVersionArn(): ?string
9283
{
9384
$this->initialize();
9485

9586
return $this->LayerVersionArn;
9687
}
9788

89+
/**
90+
* The layer's software license.
91+
*/
9892
public function getLicenseInfo(): ?string
9993
{
10094
$this->initialize();
10195

10296
return $this->LicenseInfo;
10397
}
10498

99+
/**
100+
* The version number.
101+
*/
105102
public function getVersion(): ?string
106103
{
107104
$this->initialize();

0 commit comments

Comments
 (0)