We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca5f88 commit e9f751eCopy full SHA for e9f751e
src/State.php
@@ -72,6 +72,11 @@ public function getId(): string
72
return $this->id;
73
}
74
75
+ public function getValues(): array
76
+ {
77
+ return $this->values;
78
+ }
79
+
80
/**
81
* Mark the saga as done.
82
*/
test/StateTest.php
@@ -79,6 +79,20 @@ public function it_exposes_its_id()
$this->assertEquals(42, $this->state->getId());
+ /**
83
+ * @test
84
+ */
85
+ public function it_exposes_its_values()
86
87
+ $state = new State('42');
88
+ $state->set('foo', 'bar');
89
+ $state->set('bar', 'baz');
90
+ $this->assertEquals([
91
+ 'foo' => 'bar',
92
+ 'bar' => 'baz',
93
+ ], $state->getValues());
94
95
96
97
* @test
98
0 commit comments