-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathSideEffectOptions.php
More file actions
55 lines (49 loc) · 1.34 KB
/
SideEffectOptions.php
File metadata and controls
55 lines (49 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* This file is part of Temporal package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Temporal\Common;
use JetBrains\PhpStorm\Pure;
use Temporal\Internal\Marshaller\Meta\Marshal;
use Temporal\Internal\Support\Options;
/**
* SideEffectOptions provides options for side effects.
*
* @psalm-immutable
*/
class SideEffectOptions extends Options
{
/**
* Optional summary of the side effect.
*
* Single-line fixed summary for this side effect that will appear in UI/CLI.
* This can be in single-line Temporal Markdown format.
*
* @experimental This API is experimental and may change in the future.
*
* @since RoadRunner 2025.1.2
*/
#[Marshal(name: 'Summary')]
public string $summary = '';
/**
* Optional summary of the side effect.
*
* Single-line fixed summary for this side effect that will appear in UI/CLI.
* This can be in single-line Temporal Markdown format.
*
* @experimental This API is experimental and may change in the future.
*
* @return $this
*/
#[Pure]
public function withSummary(string $summary): self
{
$self = clone $this;
$self->summary = $summary;
return $self;
}
}