PHPStan\Broker\BrokerFactory::create PHP Method

create() public method

public create ( ) : Broker
return Broker
    public function create() : Broker
    {
        $tagToService = function (array $tags) {
            return array_map(function (string $serviceName) {
                return $this->container->getService($serviceName);
            }, array_keys($tags));
        };
        $phpClassReflectionExtension = $this->container->getByType(PhpClassReflectionExtension::class);
        return new Broker(array_merge([$phpClassReflectionExtension], $tagToService($this->container->findByTag(self::PROPERTIES_CLASS_REFLECTION_EXTENSION_TAG))), array_merge([$phpClassReflectionExtension], $tagToService($this->container->findByTag(self::METHODS_CLASS_REFLECTION_EXTENSION_TAG))), $tagToService($this->container->findByTag(self::DYNAMIC_METHOD_RETURN_TYPE_EXTENSION_TAG)), $this->container->getByType(FunctionReflectionFactory::class));
    }