| 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/ReferenceSetArgumentTrait.php (1309B)
*/ trait ReferenceSetArgumentTrait { private $values; /** * @param Reference[] $values */ public function __construct(array $values) { $this->setValues($values); } /** * @return Reference[] */ public function getValues() { return $this->values; } /** * @param Reference[] $values The service references to put in the set */ public function setValues(array $values) { foreach ($values as $k => $v) { if (null !== $v && !$v instanceof Reference) { throw new InvalidArgumentException(sprintf('A "%s" must hold only Reference instances, "%s" given.', __CLASS__, get_debug_type($v))); } } $this->values = $values; } }