File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ class ServiceGroup
8
8
9
9
public function __construct (
10
10
private readonly Service $ service ,
11
- private readonly string $ name
12
- ) {}
11
+ private readonly string $ name
12
+ ) {
13
+ }
13
14
14
15
public function addGroup (string $ name ): ServiceGroup
15
16
{
@@ -21,11 +22,10 @@ public function addGroup(string $name): ServiceGroup
21
22
}
22
23
23
24
public function addEndpoint (
24
- string $ name ,
25
+ string $ name ,
25
26
string |EndpointHandler |callable $ serviceHandler ,
26
- array $ options = []
27
- ): void
28
- {
27
+ array $ options = []
28
+ ): void {
29
29
$ subject = $ this ->name . '. ' . $ name ;
30
30
31
31
if (array_key_exists ('subject ' , $ options )) {
Original file line number Diff line number Diff line change 7
7
8
8
class TestEndpoint implements EndpointHandler
9
9
{
10
-
11
10
public function handle (Payload $ payload ): array
12
11
{
13
12
return [
You can’t perform that action at this time.
0 commit comments