Skip to content

Commit 096a85f

Browse files
committed
added reset function
1 parent a5dce04 commit 096a85f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Symfony/Component/Workflow/DefinitionBuilder.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ public function build()
4444
return new Definition($this->places, $this->transitions, $this->initialPlace);
4545
}
4646

47+
/**
48+
* Clear all data in the builder.
49+
*/
50+
public function reset()
51+
{
52+
$this->places = array();
53+
$this->transitions = array();
54+
$this->initialPlace = null;
55+
}
56+
4757
public function setInitialPlace($place)
4858
{
4959
$this->initialPlace = $place;

0 commit comments

Comments
 (0)