Skip to content

Commit 4d0d9dc

Browse files
authored
Generate the property type for generated objects (#1467)
1 parent 6c2dd09 commit 4d0d9dc

16 files changed

+90
-0
lines changed

src/Result/CreateRepositoryOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class CreateRepositoryOutput extends Result
1313
{
1414
/**
1515
* Information about the newly created repository.
16+
*
17+
* @var RepositoryMetadata|null
1618
*/
1719
private $repositoryMetadata;
1820

src/Result/DeleteRepositoryOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class DeleteRepositoryOutput extends Result
1212
{
1313
/**
1414
* The ID of the repository that was deleted.
15+
*
16+
* @var string|null
1517
*/
1618
private $repositoryId;
1719

src/Result/GetBlobOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class GetBlobOutput extends Result
1212
{
1313
/**
1414
* The content of the blob, usually a file.
15+
*
16+
* @var string
1517
*/
1618
private $content;
1719

src/Result/GetBranchOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class GetBranchOutput extends Result
1313
{
1414
/**
1515
* The name of the branch.
16+
*
17+
* @var BranchInfo|null
1618
*/
1719
private $branch;
1820

src/Result/GetCommitOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class GetCommitOutput extends Result
1414
{
1515
/**
1616
* A commit data type object that contains information about the specified commit.
17+
*
18+
* @var Commit
1719
*/
1820
private $commit;
1921

src/Result/GetDifferencesOutput.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ class GetDifferencesOutput extends Result implements \IteratorAggregate
1818
/**
1919
* A data type object that contains information about the differences, including whether the difference is added,
2020
* modified, or deleted (A, D, M).
21+
*
22+
* @var Difference[]
2123
*/
2224
private $differences;
2325

2426
/**
2527
* An enumeration token that can be used in a request to return the next batch of the results.
28+
*
29+
* @var string|null
2630
*/
2731
private $nextToken;
2832

src/Result/ListRepositoriesOutput.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ class ListRepositoriesOutput extends Result implements \IteratorAggregate
1818
{
1919
/**
2020
* Lists the repositories called by the list repositories operation.
21+
*
22+
* @var RepositoryNameIdPair[]
2123
*/
2224
private $repositories;
2325

2426
/**
2527
* An enumeration token that allows the operation to batch the results of the operation. Batch sizes are 1,000 for list
2628
* repository operations. When the client sends the token back to AWS CodeCommit, another page of 1,000 records is
2729
* retrieved.
30+
*
31+
* @var string|null
2832
*/
2933
private $nextToken;
3034

src/Result/PutRepositoryTriggersOutput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class PutRepositoryTriggersOutput extends Result
1212
{
1313
/**
1414
* The system-generated unique ID for the create or update operation.
15+
*
16+
* @var string|null
1517
*/
1618
private $configurationId;
1719

src/ValueObject/BlobMetadata.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ final class BlobMetadata
99
{
1010
/**
1111
* The full ID of the blob.
12+
*
13+
* @var string|null
1214
*/
1315
private $blobId;
1416

1517
/**
1618
* The path to the blob and associated file name, if any.
19+
*
20+
* @var string|null
1721
*/
1822
private $path;
1923

@@ -24,6 +28,8 @@ final class BlobMetadata
2428
* - `100755` indicates read/write/execute
2529
* - `160000` indicates a submodule
2630
* - `120000` indicates a symlink
31+
*
32+
* @var string|null
2733
*/
2834
private $mode;
2935

src/ValueObject/BranchInfo.php

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

1517
/**
1618
* The ID of the last commit made to the branch.
19+
*
20+
* @var string|null
1721
*/
1822
private $commitId;
1923

src/ValueObject/Commit.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,37 @@ final class Commit
99
{
1010
/**
1111
* The full SHA ID of the specified commit.
12+
*
13+
* @var string|null
1214
*/
1315
private $commitId;
1416

1517
/**
1618
* Tree information for the specified commit.
19+
*
20+
* @var string|null
1721
*/
1822
private $treeId;
1923

2024
/**
2125
* A list of parent commits for the specified commit. Each parent commit ID is the full commit ID.
26+
*
27+
* @var string[]|null
2228
*/
2329
private $parents;
2430

2531
/**
2632
* The commit message associated with the specified commit.
33+
*
34+
* @var string|null
2735
*/
2836
private $message;
2937

3038
/**
3139
* Information about the author of the specified commit. Information includes the date in timestamp format with GMT
3240
* offset, the name of the author, and the email address for the author, as configured in Git.
41+
*
42+
* @var UserInfo|null
3343
*/
3444
private $author;
3545

@@ -42,11 +52,15 @@ final class Commit
4252
* [^1] in Pro Git by Scott Chacon and Ben Straub.
4353
*
4454
* [^1]: http://git-scm.com/book/ch2-3.html
55+
*
56+
* @var UserInfo|null
4557
*/
4658
private $committer;
4759

4860
/**
4961
* Any other data associated with the specified commit.
62+
*
63+
* @var string|null
5064
*/
5165
private $additionalData;
5266

src/ValueObject/Difference.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@ final class Difference
1111
{
1212
/**
1313
* Information about a `beforeBlob` data type object, including the ID, the file mode permission code, and the path.
14+
*
15+
* @var BlobMetadata|null
1416
*/
1517
private $beforeBlob;
1618

1719
/**
1820
* Information about an `afterBlob` data type object, including the ID, the file mode permission code, and the path.
21+
*
22+
* @var BlobMetadata|null
1923
*/
2024
private $afterBlob;
2125

2226
/**
2327
* Whether the change type of the difference is an addition (A), deletion (D), or modification (M).
28+
*
29+
* @var ChangeTypeEnum::*|null
2430
*/
2531
private $changeType;
2632

src/ValueObject/RepositoryMetadata.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,71 @@ final class RepositoryMetadata
99
{
1010
/**
1111
* The ID of the AWS account associated with the repository.
12+
*
13+
* @var string|null
1214
*/
1315
private $accountId;
1416

1517
/**
1618
* The ID of the repository.
19+
*
20+
* @var string|null
1721
*/
1822
private $repositoryId;
1923

2024
/**
2125
* The repository's name.
26+
*
27+
* @var string|null
2228
*/
2329
private $repositoryName;
2430

2531
/**
2632
* A comment or description about the repository.
33+
*
34+
* @var string|null
2735
*/
2836
private $repositoryDescription;
2937

3038
/**
3139
* The repository's default branch name.
40+
*
41+
* @var string|null
3242
*/
3343
private $defaultBranch;
3444

3545
/**
3646
* The date and time the repository was last modified, in timestamp format.
47+
*
48+
* @var \DateTimeImmutable|null
3749
*/
3850
private $lastModifiedDate;
3951

4052
/**
4153
* The date and time the repository was created, in timestamp format.
54+
*
55+
* @var \DateTimeImmutable|null
4256
*/
4357
private $creationDate;
4458

4559
/**
4660
* The URL to use for cloning the repository over HTTPS.
61+
*
62+
* @var string|null
4763
*/
4864
private $cloneUrlHttp;
4965

5066
/**
5167
* The URL to use for cloning the repository over SSH.
68+
*
69+
* @var string|null
5270
*/
5371
private $cloneUrlSsh;
5472

5573
/**
5674
* The Amazon Resource Name (ARN) of the repository.
75+
*
76+
* @var string|null
5777
*/
5878
private $arn;
5979

src/ValueObject/RepositoryNameIdPair.php

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

1517
/**
1618
* The ID associated with the repository.
19+
*
20+
* @var string|null
1721
*/
1822
private $repositoryId;
1923

src/ValueObject/RepositoryTrigger.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ final class RepositoryTrigger
1212
{
1313
/**
1414
* The name of the trigger.
15+
*
16+
* @var string
1517
*/
1618
private $name;
1719

1820
/**
1921
* The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
22+
*
23+
* @var string
2024
*/
2125
private $destinationArn;
2226

2327
/**
2428
* Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
29+
*
30+
* @var string|null
2531
*/
2632
private $customData;
2733

@@ -30,6 +36,8 @@ final class RepositoryTrigger
3036
* branches.
3137
*
3238
* > Although no content is required in the array, you must include the array itself.
39+
*
40+
* @var string[]|null
3341
*/
3442
private $branches;
3543

@@ -38,6 +46,8 @@ final class RepositoryTrigger
3846
* through Amazon SNS.
3947
*
4048
* > The valid value "all" cannot be used with any other values.
49+
*
50+
* @var list<RepositoryTriggerEventEnum::*>
4151
*/
4252
private $events;
4353

src/ValueObject/UserInfo.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ final class UserInfo
99
{
1010
/**
1111
* The name of the user who made the specified commit.
12+
*
13+
* @var string|null
1214
*/
1315
private $name;
1416

1517
/**
1618
* The email address associated with the user who made the commit, if any.
19+
*
20+
* @var string|null
1721
*/
1822
private $email;
1923

2024
/**
2125
* The date when the specified commit was commited, in timestamp format with GMT offset.
26+
*
27+
* @var string|null
2228
*/
2329
private $date;
2430

0 commit comments

Comments
 (0)