Skip to content

Commit 2dff34b

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

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

src/Input/SendTaskFailureInput.php

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

54+
/**
55+
* @param array{
56+
* taskToken?: string,
57+
* error?: string,
58+
* cause?: string,
59+
* '@region'?: string|null,
60+
* }|SendTaskFailureInput $input
61+
*/
5462
public static function create($input): self
5563
{
5664
return $input instanceof self ? $input : new self($input);

src/Input/SendTaskHeartbeatInput.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+
* taskToken?: string,
39+
* '@region'?: string|null,
40+
* }|SendTaskHeartbeatInput $input
41+
*/
3642
public static function create($input): self
3743
{
3844
return $input instanceof self ? $input : new self($input);

src/Input/SendTaskSuccessInput.php

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

48+
/**
49+
* @param array{
50+
* taskToken?: string,
51+
* output?: string,
52+
* '@region'?: string|null,
53+
* }|SendTaskSuccessInput $input
54+
*/
4855
public static function create($input): self
4956
{
5057
return $input instanceof self ? $input : new self($input);

src/Input/StartExecutionInput.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ public function __construct(array $input = [])
101101
parent::__construct($input);
102102
}
103103

104+
/**
105+
* @param array{
106+
* stateMachineArn?: string,
107+
* name?: string,
108+
* input?: string,
109+
* traceHeader?: string,
110+
* '@region'?: string|null,
111+
* }|StartExecutionInput $input
112+
*/
104113
public static function create($input): self
105114
{
106115
return $input instanceof self ? $input : new self($input);

src/Input/StopExecutionInput.php

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

51+
/**
52+
* @param array{
53+
* executionArn?: string,
54+
* error?: string,
55+
* cause?: string,
56+
* '@region'?: string|null,
57+
* }|StopExecutionInput $input
58+
*/
5159
public static function create($input): self
5260
{
5361
return $input instanceof self ? $input : new self($input);

0 commit comments

Comments
 (0)