Skip to content

Commit 7262bfc

Browse files
authored
Generates proper documentation for classes and properties (#1418)
1 parent 425dc7d commit 7262bfc

File tree

12 files changed

+38
-17
lines changed

12 files changed

+38
-17
lines changed

src/CodeCommitClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ public function createRepository($input): CreateRepositoryOutput
131131
/**
132132
* Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.
133133
*
134+
* ! Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future
135+
* ! push calls to the deleted repository fail.
136+
*
134137
* @see https://docs.aws.amazon.com/codecommit/latest/APIReference/API_DeleteRepository.html
135138
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-codecommit-2015-04-13.html#deleterepository
136139
*

src/Enum/ChangeTypeEnum.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace AsyncAws\CodeCommit\Enum;
44

5-
/**
6-
* Whether the change type of the difference is an addition (A), deletion (D), or modification (M).
7-
*/
85
final class ChangeTypeEnum
96
{
107
public const A = 'A';

src/Enum/OrderEnum.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace AsyncAws\CodeCommit\Enum;
44

5-
/**
6-
* The order in which to sort the results of a list repositories operation.
7-
*/
85
final class OrderEnum
96
{
107
public const ASCENDING = 'ascending';

src/Enum/SortByEnum.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace AsyncAws\CodeCommit\Enum;
44

5-
/**
6-
* The criteria used to sort the results of a list repositories operation.
7-
*/
85
final class SortByEnum
96
{
107
public const LAST_MODIFIED_DATE = 'lastModifiedDate';

src/Exception/FileTooLargeException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
/**
88
* The specified file exceeds the file size limit for AWS CodeCommit. For more information about limits in AWS
9-
* CodeCommit, see AWS CodeCommit User Guide.
9+
* CodeCommit, see AWS CodeCommit User Guide [^1].
1010
*
11-
* @see https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
11+
* [^1]: https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
1212
*/
1313
final class FileTooLargeException extends ClientException
1414
{

src/Input/CreateRepositoryInput.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ final class CreateRepositoryInput extends Input
1515
/**
1616
* The name of the new repository to be created.
1717
*
18+
* > The repository name must be unique across the calling AWS account. Repository names are limited to 100
19+
* > alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about
20+
* > the limits on repository names, see Limits [^1] in the *AWS CodeCommit User Guide*. The suffix .git is prohibited.
21+
*
22+
* [^1]: https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
23+
*
1824
* @required
1925
*
2026
* @var string|null
@@ -24,6 +30,11 @@ final class CreateRepositoryInput extends Input
2430
/**
2531
* A comment or description about the new repository.
2632
*
33+
* > The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications
34+
* > that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code.
35+
* > Make sure that you HTML-encode the description field in any application that uses this API to display the
36+
* > repository description on a webpage.
37+
*
2738
* @var string|null
2839
*/
2940
private $repositoryDescription;

src/ValueObject/BlobMetadata.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace AsyncAws\CodeCommit\ValueObject;
44

55
/**
6-
* Information about a `beforeBlob` data type object, including the ID, the file mode permission code, and the path.
6+
* Returns information about a specific Git blob object.
77
*/
88
final class BlobMetadata
99
{
@@ -19,6 +19,14 @@ final class BlobMetadata
1919

2020
/**
2121
* The file mode permissions of the blob. File mode permission codes include:.
22+
*
23+
* - `100644` indicates read/write
24+
* -
25+
* - `100755` indicates read/write/execute
26+
* -
27+
* - `160000` indicates a submodule
28+
* -
29+
* - `120000` indicates a symlink
2230
*/
2331
private $mode;
2432

src/ValueObject/BranchInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace AsyncAws\CodeCommit\ValueObject;
44

55
/**
6-
* The name of the branch.
6+
* Returns information about a branch.
77
*/
88
final class BranchInfo
99
{

src/ValueObject/Commit.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace AsyncAws\CodeCommit\ValueObject;
44

55
/**
6-
* A commit data type object that contains information about the specified commit.
6+
* Returns information about a specific commit.
77
*/
88
final class Commit
99
{
@@ -37,6 +37,11 @@ final class Commit
3737
* Information about the person who committed the specified commit, also known as the committer. Information includes
3838
* the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as
3939
* configured in Git.
40+
*
41+
* For more information about the difference between an author and a committer in Git, see Viewing the Commit History
42+
* [^1] in Pro Git by Scott Chacon and Ben Straub.
43+
*
44+
* [^1]: http://git-scm.com/book/ch2-3.html
4045
*/
4146
private $committer;
4247

src/ValueObject/RepositoryMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace AsyncAws\CodeCommit\ValueObject;
44

55
/**
6-
* Information about the newly created repository.
6+
* Information about a repository.
77
*/
88
final class RepositoryMetadata
99
{

0 commit comments

Comments
 (0)