Skip to content

Commit ca13dc3

Browse files
authored
Generate the phpdoc for the static create method of objects (#1464)
1 parent 2b12db5 commit ca13dc3

File tree

66 files changed

+589
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+589
-0
lines changed

src/Input/BatchGetItemInput.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ public function __construct(array $input = [])
9898
parent::__construct($input);
9999
}
100100

101+
/**
102+
* @param array{
103+
* RequestItems?: array<string, KeysAndAttributes>,
104+
* ReturnConsumedCapacity?: ReturnConsumedCapacity::*,
105+
* '@region'?: string|null,
106+
* }|BatchGetItemInput $input
107+
*/
101108
public static function create($input): self
102109
{
103110
return $input instanceof self ? $input : new self($input);

src/Input/BatchWriteItemInput.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ public function __construct(array $input = [])
7979
parent::__construct($input);
8080
}
8181

82+
/**
83+
* @param array{
84+
* RequestItems?: array<string, array>,
85+
* ReturnConsumedCapacity?: ReturnConsumedCapacity::*,
86+
* ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics::*,
87+
* '@region'?: string|null,
88+
* }|BatchWriteItemInput $input
89+
*/
8290
public static function create($input): self
8391
{
8492
return $input instanceof self ? $input : new self($input);

src/Input/CreateTableInput.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,23 @@ public function __construct(array $input = [])
252252
parent::__construct($input);
253253
}
254254

255+
/**
256+
* @param array{
257+
* AttributeDefinitions?: AttributeDefinition[],
258+
* TableName?: string,
259+
* KeySchema?: KeySchemaElement[],
260+
* LocalSecondaryIndexes?: LocalSecondaryIndex[],
261+
* GlobalSecondaryIndexes?: GlobalSecondaryIndex[],
262+
* BillingMode?: BillingMode::*,
263+
* ProvisionedThroughput?: ProvisionedThroughput|array,
264+
* StreamSpecification?: StreamSpecification|array,
265+
* SSESpecification?: SSESpecification|array,
266+
* Tags?: Tag[],
267+
* TableClass?: TableClass::*,
268+
* DeletionProtectionEnabled?: bool,
269+
* '@region'?: string|null,
270+
* }|CreateTableInput $input
271+
*/
255272
public static function create($input): self
256273
{
257274
return $input instanceof self ? $input : new self($input);

src/Input/DeleteItemInput.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,21 @@ public function __construct(array $input = [])
221221
parent::__construct($input);
222222
}
223223

224+
/**
225+
* @param array{
226+
* TableName?: string,
227+
* Key?: array<string, AttributeValue>,
228+
* Expected?: array<string, ExpectedAttributeValue>,
229+
* ConditionalOperator?: ConditionalOperator::*,
230+
* ReturnValues?: ReturnValue::*,
231+
* ReturnConsumedCapacity?: ReturnConsumedCapacity::*,
232+
* ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics::*,
233+
* ConditionExpression?: string,
234+
* ExpressionAttributeNames?: array<string, string>,
235+
* ExpressionAttributeValues?: array<string, AttributeValue>,
236+
* '@region'?: string|null,
237+
* }|DeleteItemInput $input
238+
*/
224239
public static function create($input): self
225240
{
226241
return $input instanceof self ? $input : new self($input);

src/Input/DeleteTableInput.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ public function __construct(array $input = [])
3333
parent::__construct($input);
3434
}
3535

36+
/**
37+
* @param array{
38+
* TableName?: string,
39+
* '@region'?: string|null,
40+
* }|DeleteTableInput $input
41+
*/
3642
public static function create($input): self
3743
{
3844
return $input instanceof self ? $input : new self($input);

src/Input/DescribeEndpointsRequest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ public function __construct(array $input = [])
1818
parent::__construct($input);
1919
}
2020

21+
/**
22+
* @param array{
23+
* '@region'?: string|null,
24+
* }|DescribeEndpointsRequest $input
25+
*/
2126
public static function create($input): self
2227
{
2328
return $input instanceof self ? $input : new self($input);

src/Input/DescribeTableInput.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ public function __construct(array $input = [])
3333
parent::__construct($input);
3434
}
3535

36+
/**
37+
* @param array{
38+
* TableName?: string,
39+
* '@region'?: string|null,
40+
* }|DescribeTableInput $input
41+
*/
3642
public static function create($input): self
3743
{
3844
return $input instanceof self ? $input : new self($input);

src/Input/ExecuteStatementInput.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ public function __construct(array $input = [])
8181
parent::__construct($input);
8282
}
8383

84+
/**
85+
* @param array{
86+
* Statement?: string,
87+
* Parameters?: AttributeValue[],
88+
* ConsistentRead?: bool,
89+
* NextToken?: string,
90+
* ReturnConsumedCapacity?: ReturnConsumedCapacity::*,
91+
* Limit?: int,
92+
* '@region'?: string|null,
93+
* }|ExecuteStatementInput $input
94+
*/
8495
public static function create($input): self
8596
{
8697
return $input instanceof self ? $input : new self($input);

src/Input/GetItemInput.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ public function __construct(array $input = [])
140140
parent::__construct($input);
141141
}
142142

143+
/**
144+
* @param array{
145+
* TableName?: string,
146+
* Key?: array<string, AttributeValue>,
147+
* AttributesToGet?: string[],
148+
* ConsistentRead?: bool,
149+
* ReturnConsumedCapacity?: ReturnConsumedCapacity::*,
150+
* ProjectionExpression?: string,
151+
* ExpressionAttributeNames?: array<string, string>,
152+
* '@region'?: string|null,
153+
* }|GetItemInput $input
154+
*/
143155
public static function create($input): self
144156
{
145157
return $input instanceof self ? $input : new self($input);

src/Input/ListTablesInput.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ public function __construct(array $input = [])
4040
parent::__construct($input);
4141
}
4242

43+
/**
44+
* @param array{
45+
* ExclusiveStartTableName?: string,
46+
* Limit?: int,
47+
* '@region'?: string|null,
48+
* }|ListTablesInput $input
49+
*/
4350
public static function create($input): self
4451
{
4552
return $input instanceof self ? $input : new self($input);

0 commit comments

Comments
 (0)