8000 minor #23832 [DI] Fix some docblocks (nicolas-grekas) · symfony/symfony@5fad797 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 5fad797

Browse files
author
Robin Chalas
committed
minor #23832 [DI] Fix some docblocks (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [DI] Fix some docblocks | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- dd86229 [DI] Fix some docblocks
2 parents 695266f + dd86229 commit 5fad797

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,8 @@ public function getAlias($id)
710710
* This methods allows for simple registration of service definition
711711
* with a fluid interface.
712712
*
713-
* @param string $id The service identifier
714-
* @param string $class The service class
713+
* @param string $id The service identifier
714+
* @param string $class|null The service class
715715
*
716716
* @return Definition A Definition instance
717717
*/

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,38 @@ public function setArguments(array $arguments)
257257
return $this;
258258
}
259259

260+
/**
261+
* Sets the properties to define when creating the service.
262+
*
263+
* @param array $properties
264+
*
265+
* @return $this
266+
*/
260267
public function setProperties(array $properties)
261268
{
262269
$this->properties = $properties;
263270

264271
return $this;
265272
}
266273

274+
/**
275+
* Gets the properties to define when creating the service.
276+
*
277+
* @return array
278+
*/
267279
public function getProperties()
268280
{
269281
return $this->properties;
270282
}
271283

284+
/**
285+
* Sets a specific property.
286+
*
287+
* @param string $name
288+
* @param mixed $value
289+
*
290+
* @return $this
291+
*/
272292
public function setProperty($name, $value)
273293
{
274294
$this->properties[$name] = $value;
@@ -291,7 +311,7 @@ public function addArgument($argument)
291311
}
292312

293313
/**
294-
* Sets a specific argument.
314+
* Replaces a specific argument.
295315
*
296316
* @param int $index
297317
* @param mixed $argument

0 commit comments

Comments
 (0)
0