Skip to content

Workflow: align Example for property access with implementation of Me… #12988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,25 @@ like this:
If you are creating your first workflows, consider using the ``workflow:dump``
command to :doc:`debug the workflow contents </workflow/dumping-workflows>`.

As configured, the following property is used by the marking store::
The configured property will be used via it's implemented getter/setter methods by the marking store::

class BlogPost
{
// This property is used by the marking store
public $currentPlace;
public $title;
public $content;
// the configured property must be declared
private $currentPlace;
private $title;
private $content;

// getter/setter methods must exist for property access by the marking store
public function getCurrentPlace()
{
return $this->currentPlace;
}

public function setCurrentPlace($currentPlace, $context = [])
{
$this->currentPlace = $currentPlace;
}
}

.. note::
Expand Down