File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed
src/Symfony/Component/DependencyInjection Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -868,8 +868,8 @@ public function getAlias($id)
868
868
* This methods allows for simple registration of service definition
869
869
* with a fluid interface.
870
870
*
871
- * @param string $id The service identifier
872
- * @param string $class The service class
871
+ * @param string $id The service identifier
872
+ * @param string $class|null The service class
873
873
*
874
874
* @return Definition A Definition instance
875
875
*/
Original file line number Diff line number Diff line change @@ -188,18 +188,38 @@ public function setArguments(array $arguments)
188
188
return $ this ;
189
189
}
190
190
191
+ /**
192
+ * Sets the properties to define when creating the service.
193
+ *
194
+ * @param array $properties
195
+ *
196
+ * @return $this
197
+ */
191
198
public function setProperties (array $ properties )
192
199
{
193
200
$ this ->properties = $ properties ;
194
201
195
202
return $ this ;
196
203
}
197
204
205
+ /**
206
+ * Gets the properties to define when creating the service.
207
+ *
208
+ * @return array
209
+ */
198
210
public function getProperties ()
199
211
{
200
212
return $ this ->properties ;
201
213
}
202
214
215
+ /**
216
+ * Sets a specific property.
217
+ *
218
+ * @param string $name
219
+ * @param mixed $value
220
+ *
221
+ * @return $this
222
+ */
203
223
public function setProperty ($ name , $ value )
204
224
{
205
225
$ this ->properties [$ name ] = $ value ;
@@ -222,7 +242,7 @@ public function addArgument($argument)
222
242
}
223
243
224
244
/**
225
- * Sets a specific argument.
245
+ * Replaces a specific argument.
226
246
*
227
247
* @param int|string $index
228
248
* @param mixed $argument
You can’t perform that action at this time.
0 commit comments