Skip to content

Commit 65884f2

Browse files
authored
chore: enhanced docs, applied code style adjustments (#682)
* chore: enhanced docs, applied code style adjustments * chore: revert changes in Harness dir
1 parent f6f4291 commit 65884f2

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

resources/client.meta-storm.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,24 @@
2929
argument="0"
3030
>
3131
<collection name="temporal/sdk:workflow-class" argument="0" />
32+
<collection name="temporal/sdk:workflow-type" argument="0" />
3233
<stopCompletion />
3334
</classMethod>
35+
<classMethod
36+
class="\Temporal\Client\Schedule\Action\StartWorkflowAction"
37+
method="new"
38+
argument="0"
39+
>
40+
<collection name="temporal/sdk:workflow-class" />
41+
<collection name="temporal/sdk:workflow-type" argument="0" />
42+
<stopCompletion />
43+
</classMethod>
44+
<classMethod
45+
class="\Temporal\DataConverter\ValuesInterface"
46+
method="getValue"
47+
argument="1"
48+
>
49+
<languageInjection language="InjectablePHP" prefix="/** @var " suffix=" $_ **/" />
50+
</classMethod>
3451
</definitions>
3552
</meta-storm>

tests/.meta-storm.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<meta-storm>
2+
<definitions>
3+
<classConstructor class="\Temporal\Tests\Acceptance\App\Attribute\Stub" argument="0">
4+
<collection name="temporal/sdk:workflow-type" />
5+
</classConstructor>
6+
</definitions>
7+
</meta-storm>

tests/Acceptance/App/Attribute/RetryOptions.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,25 @@ class RetryOptions
2525
* @param int<0, max> $maximumAttempts
2626
*/
2727
public function __construct(
28+
/**
29+
* @see CommonOptions::withInitialInterval()
30+
*/
2831
public ?string $initialInterval = CommonOptions::DEFAULT_INITIAL_INTERVAL,
32+
/**
33+
* @see CommonOptions::withBackoffCoefficient()
34+
*/
2935
public float $backoffCoefficient = CommonOptions::DEFAULT_BACKOFF_COEFFICIENT,
36+
/**
37+
* @see CommonOptions::withMaximumInterval()
38+
*/
3039
public ?string $maximumInterval = CommonOptions::DEFAULT_MAXIMUM_INTERVAL,
40+
/**
41+
* @see CommonOptions::withMaximumAttempts()
42+
*/
3143
public int $maximumAttempts = CommonOptions::DEFAULT_MAXIMUM_ATTEMPTS,
44+
/**
45+
* @see CommonOptions::withNonRetryableExceptions()
46+
*/
3247
public array $nonRetryableExceptions = CommonOptions::DEFAULT_NON_RETRYABLE_EXCEPTIONS,
3348
) {}
3449

tests/Acceptance/App/Attribute/Stub.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,26 @@ final class Stub
2323
*/
2424
public function __construct(
2525
public string $type,
26+
/**
27+
* @see WorkflowOptions::withEagerStart()
28+
*/
2629
public bool $eagerStart = false,
30+
/**
31+
* @see WorkflowOptions::withWorkflowId()
32+
*/
2733
public ?string $workflowId = null,
34+
/**
35+
* @see WorkflowOptions::withWorkflowExecutionTimeout()
36+
*/
2837
public ?string $executionTimeout = null,
2938
public array $args = [],
39+
/**
40+
* @see WorkflowOptions::withMemo()
41+
*/
3042
public array $memo = [],
43+
/**
44+
* @see WorkflowOptions::withRetryOptions()
45+
*/
3146
?RetryOptions $retryOptions = null,
3247
) {
3348
$this->retryOptions = $retryOptions?->toRetryOptions();

0 commit comments

Comments
 (0)