File tree 2 files changed +8
-14
lines changed
2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ abstract public function handle(array &$context);
20
20
21
21
/**
22
22
* Get the state of the action.
23
- *
24
- * @return ActionState|null
25
23
*/
26
24
public function getState (): ?ActionState
27
25
{
@@ -30,9 +28,6 @@ public function getState(): ?ActionState
30
28
31
29
/**
32
30
* Set the state of the action.
33
- *
34
- * @param ActionState $state
35
- * @return void
36
31
*/
37
32
public function setState (ActionState $ state ): void
38
33
{
@@ -41,8 +36,6 @@ public function setState(ActionState $state): void
41
36
42
37
/**
43
38
* Get the exception of the action.
44
- *
45
- * @return \Exception|null
46
39
*/
47
40
public function getException (): ?\Exception
48
41
{
@@ -51,9 +44,6 @@ public function getException(): ?\Exception
51
44
52
45
/**
53
46
* Set the exception of the action.
54
- *
55
- * @param \Exception|null $exception
56
- * @return void
57
47
*/
58
48
public function setException (?\Exception $ exception ): void
59
49
{
Original file line number Diff line number Diff line change 4
4
use Safemood \Workflow \Enums \ActionState ;
5
5
6
6
it ('can set and get the state using ActionState ' , function () {
7
- $ action = new class extends Action {
7
+ $ action = new class extends Action
8
+ {
8
9
public function handle (array &$ context ) {}
9
10
};
10
11
@@ -18,7 +19,8 @@ public function handle(array &$context) {}
18
19
});
19
20
20
21
it ('can set and get the exception ' , function () {
21
- $ action = new class extends Action {
22
+ $ action = new class extends Action
23
+ {
22
24
public function handle (array &$ context ) {}
23
25
};
24
26
@@ -29,8 +31,10 @@ public function handle(array &$context) {}
29
31
});
30
32
31
33
it ('should handle the abstract handle method ' , function () {
32
- $ action = new class extends Action {
33
- public function handle (array &$ context ) {
34
+ $ action = new class extends Action
35
+ {
36
+ public function handle (array &$ context )
37
+ {
34
38
// Example handle logic
35
39
$ context ['handled ' ] = true ;
36
40
}
You can’t perform that action at this time.
0 commit comments