/usr/share/php/Symfony/Component/DependencyInjection/Argument
NameSizeModeActions
AbstractArgument.php9250644editdlrm
ArgumentInterface.php5700644editdlrm
BoundArgument.php15120644editdlrm
IteratorArgument.php5140644editdlrm
ReferenceSetArgumentTrait.php13090644editdlrm
RewindableGenerator.php9160644editdlrm
ServiceClosureArgument.php11950644editdlrm
ServiceLocator.php12870644editdlrm
ServiceLocatorArgument.php10640644editdlrm
TaggedIteratorArgument.php27720644editdlrm
Edit: /usr/share/php/Symfony/Component/DependencyInjection/Argument/ReferenceSetArgumentTrait.php (1309B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Argument; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Reference; /** * @author Titouan Galopin * @author Nicolas Grekas */ 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; } }