File tree 1 file changed +12
-0
lines changed
src/Symfony/Component/Workflow
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,15 @@ public function reset()
52
52
$ this ->places = array ();
53
53
$ this ->transitions = array ();
54
54
$ this ->initialPlace = null ;
55
+
56
+ return $ this ;
55
57
}
56
58
57
59
public function setInitialPlace ($ place )
58
60
{
59
61
$ this ->initialPlace = $ place ;
62
+
63
+ return $ this ;
60
64
}
61
65
62
66
public function addPlace ($ place )
@@ -70,13 +74,17 @@ public function addPlace($place)
70
74
}
71
75
72
76
$ this ->places [$ place ] = $ place ;
77
+
78
+ return $ this ;
73
79
}
74
80
75
81
public function addPlaces (array $ places )
76
82
{
77
83
foreach ($ places as $ place ) {
78
84
$ this ->addPlace ($ place );
79
85
}
86
+
87
+ return $ this ;
80
88
}
81
89
82
90
/**
@@ -87,10 +95,14 @@ public function addTransitions(array $transitions)
87
95
foreach ($ transitions as $ transition ) {
88
96
$ this ->addTransition ($ transition );
89
97
}
98
+
99
+ return $ this ;
90
100
}
91
101
92
102
public function addTransition (Transition $ transition )
93
103
{
94
104
$ this ->transitions [] = $ transition ;
105
+
106
+ return $ this ;
95
107
}
96
108
}
You can’t perform that action at this time.
0 commit comments