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

0 commit comments

Comments
 (0)