![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/syn.corals.io/vendor/symfony/property-info/Extractor/ |
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\PropertyInfo\Extractor; use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface; /** * Extracts the constructor argument type using ConstructorArgumentTypeExtractorInterface implementations. * * @author Dmitrii Poddubnyi <[email protected]> */ final class ConstructorExtractor implements PropertyTypeExtractorInterface { /** @var iterable|ConstructorArgumentTypeExtractorInterface[] */ private $extractors; /** * @param iterable|ConstructorArgumentTypeExtractorInterface[] $extractors */ public function __construct(iterable $extractors = []) { $this->extractors = $extractors; } /** * {@inheritdoc} */ public function getTypes(string $class, string $property, array $context = []) { foreach ($this->extractors as $extractor) { $value = $extractor->getTypesFromConstructor($class, $property); if (null !== $value) { return $value; } } return null; } }