File tree 1 file changed +16
-5
lines changed
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -160,14 +160,25 @@ like this:
160
160
If you are creating your first workflows, consider using the ``workflow:dump ``
161
161
command to :doc: `debug the workflow contents </workflow/dumping-workflows >`.
162
162
163
- As configured, the following property is used by the marking store::
163
+ The configured property will be used via it's implemented getter/setter methods by the marking store::
164
164
165
165
class BlogPost
166
166
{
167
- // This property is used by the marking store
168
- public $currentPlace;
169
- public $title;
170
- public $content;
167
+ // the configured property must be declared
168
+ private $currentPlace;
169
+ private $title;
170
+ private $content;
171
+
172
+ // getter/setter methods must exist for property access by the marking store
173
+ public function getCurrentPlace()
174
+ {
175
+ return $this->currentPlace;
176
+ }
177
+
178
+ public function setCurrentPlace($currentPlace, $context = [])
179
+ {
180
+ $this->currentPlace = $currentPlace;
181
+ }
171
182
}
172
183
173
184
.. note ::
You can’t perform that action at this time.
0 commit comments