| Name | Size | Mode | Actions |
|---|---|---|---|
| AbstractArgument.php | 925 | 0644 | editdlrm |
| ArgumentInterface.php | 570 | 0644 | editdlrm |
| BoundArgument.php | 1512 | 0644 | editdlrm |
| IteratorArgument.php | 514 | 0644 | editdlrm |
| ReferenceSetArgumentTrait.php | 1309 | 0644 | editdlrm |
| RewindableGenerator.php | 916 | 0644 | editdlrm |
| ServiceClosureArgument.php | 1195 | 0644 | editdlrm |
| ServiceLocator.php | 1287 | 0644 | editdlrm |
| ServiceLocatorArgument.php | 1064 | 0644 | editdlrm |
| TaggedIteratorArgument.php | 2772 | 0644 | editdlrm |
/usr/share/php/Symfony/Component/DependencyInjection/Argument/ServiceClosureArgument.php (1195B)
*/ class ServiceClosureArgument implements ArgumentInterface { private $values; public function __construct(Reference $reference) { $this->values = [$reference]; } /** * {@inheritdoc} */ public function getValues() { return $this->values; } /** * {@inheritdoc} */ public function setValues(array $values) { if ([0] !== array_keys($values) || !($values[0] instanceof Reference || null === $values[0])) { throw new InvalidArgumentException('A ServiceClosureArgument must hold one and only one Reference.'); } $this->values = $values; } }