File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/Symfony/Component/Workflow Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,15 @@ public function reset()
5252 $ this ->places = array ();
5353 $ this ->transitions = array ();
5454 $ this ->initialPlace = null ;
55+
56+ return $ this ;
5557 }
5658
5759 public function setInitialPlace ($ place )
5860 {
5961 $ this ->initialPlace = $ place ;
62+
63+ return $ this ;
6064 }
6165
6266 public function addPlace ($ place )
@@ -70,13 +74,17 @@ public function addPlace($place)
7074 }
7175
7276 $ this ->places [$ place ] = $ place ;
77+
78+ return $ this ;
7379 }
7480
7581 public function addPlaces (array $ places )
7682 {
7783 foreach ($ places as $ place ) {
7884 $ this ->addPlace ($ place );
7985 }
86+
87+ return $ this ;
8088 }
8189
8290 /**
@@ -87,10 +95,14 @@ public function addTransitions(array $transitions)
8795 foreach ($ transitions as $ transition ) {
8896 $ this ->addTransition ($ transition );
8997 }
98+
99+ return $ this ;
90100 }
91101
92102 public function addTransition (Transition $ transition )
93103 {
94104 $ this ->transitions [] = $ transition ;
105+
106+ return $ this ;
95107 }
96108}
You can’t perform that action at this time.
0 commit comments