wordpress-seo
/
vendor_prefixed
/
symfony
/
dependency-injection
/
Argument
/
ServiceLocatorArgument.php
ServiceLocatorArgument.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.1, at vendor_prefixed/symfony/dependency-injection/Argument/ServiceLocatorArgument.php
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <[email protected]> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace YoastSEO_Vendor\Symfony\Component\DependencyInjection\Argument; |
| 12 | |
| 13 | use YoastSEO_Vendor\Symfony\Component\DependencyInjection\Reference; |
| 14 | /** |
| 15 | * Represents a closure acting as a service locator. |
| 16 | * |
| 17 | * @author Nicolas Grekas <[email protected]> |
| 18 | */ |
| 19 | class ServiceLocatorArgument implements \YoastSEO_Vendor\Symfony\Component\DependencyInjection\Argument\ArgumentInterface |
| 20 | { |
| 21 | use ReferenceSetArgumentTrait; |
| 22 | private $taggedIteratorArgument; |
| 23 | /** |
| 24 | * @param Reference[]|TaggedIteratorArgument $values |
| 25 | */ |
| 26 | public function __construct($values = []) |
| 27 | { |
| 28 | if ($values instanceof \YoastSEO_Vendor\Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument) { |
| 29 | $this->taggedIteratorArgument = $values; |
| 30 | $this->values = []; |
| 31 | } else { |
| 32 | $this->setValues($values); |
| 33 | } |
| 34 | } |
| 35 | public function getTaggedIteratorArgument() : ?\YoastSEO_Vendor\Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument |
| 36 | { |
| 37 | return $this->taggedIteratorArgument; |
| 38 | } |
| 39 | } |
| 40 |