Returns a PartBuilderFactory instance.

@return PartBuilderFactory
552198
public function getPartBuilderFactory()
    {
        if ($this->partBuilderFactory === null) {
            $this->partBuilderFactory = new PartBuilderFactory(
                $this->getHeaderFactory()
            );
        }
        return $this->partBuilderFactory;
    }
977818
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('gauges');
        $rootNode
            ->useAttributeAsKey('path')
            ->prototype('array')
            ->children()
                ->scalarNode('class')
                    ->isRequired()
                    ->cannotBeEmpty()
                ->end()
                ->variableNode('arguments')->end()
            ->end();

        return $treeBuilder;
    }
1015516
public function build()
    {
        $this->assertAdditionsAreUnique();

        /** @var StepRegistration[] $registrations */
        $registrations = [];

        foreach ($this->additions as $addition) {
            $registrations[$addition->getStepId()] = $addition;
        }

        $this->assertReplacementsAreValid($registrations);

        foreach ($this->replacements as $replacement) {
            $registrations[$replacement->getIdToReplace()]->replaceWith($replacement);
        }

        $this->assertRemovalsAreValid($registrations);
        $this->assertRemovalsDoNotAffectDependencies($registrations);

        foreach ($this->removals as $removal) {
            if (isset($registrations[$removal->getIdToRemove()])) {
                unset($registrations[$removal->getIdToRemove()]);
            }
        }

        if (empty($registrations)) {
            return [];
        }

        $stages = $this->groupRegistrationsByStage($registrations);

        $this->assertContextStageExists($this->rootContextClass, $stages);
        $currentStage = $stages[$this->rootContextClass];
        $stageName = $this->rootContextClass;

        $finalOrder = [];
        $stageNumber = 1;
        while ($currentStage) {
            $stageSteps = $this->getStepsFromStage($currentStage);
            $finalOrder = array_merge($finalOrder, $this->sort($stageSteps));

            $stageConnectors = $this->getConnectorsFromStage($currentStage);

            $this->assertThereIsAtMostOneConnectorPerStage($stageName, $stageConnectors);
            $this->assertThereIsAtLeastOneConnectorPerIntermediaryStage(
                $stageNumber,
                count($stages),
                $stageName,
                $stageConnectors
            );

            $currentStage = null;

            /** @var StepRegistration $stageConnector */
            $stageConnector = reset($stageConnectors);
            if ($stageConnector) {
                $finalOrder[] = $stageConnector;

                if (!$this->isTerminator($stageConnector)) {
                    /** @var StageConnectorInterface $connectorClass */
                    $connectorClass = $stageConnector->getStepFqcn();
                    $stageName = $connectorClass::getNextStageContextClass();
                    $this->assertContextStageExists($stageName, $stages);

                    $currentStage = $stages[$stageName];
                }
            }

            $stageNumber++;
        }

        return $finalOrder;
    }
379429
public function getBuilderClass()
    {
        if (!empty($this->builderClassName)) {
            return $this->builderClassName;
        }

        return $this->getConfig('builder') ?: '\\think\\db\\builder\\' . ucfirst($this->getConfig('type'));
    }
1068369
protected function createContainerBuilder()
	{
		$builder = new ContainerBuilder();
		
		foreach($this->getContainerParams() as $k => $v)
		{
			$builder->setParameter($k, $v);
		}
		
		return $builder;
	}
1314929
public function build()
    {
        if (isset($this->component)) {
            return $this->component;
        }

        $this->component = BuildUtil::removeNullElements([
            'type' => ComponentType::SEPARATOR,
            'margin' => $this->margin,
            'color' => $this->color,
        ]);

        return $this->component;
    }
199348
protected function merge()
    {
        if (null === $this->merge) {
            $this->merge = new MergeBuilder($this);
        }

        return $this->merge;
    }
619568
public function build()
    {
        $this->createEntityClassParameter();

        $this->createConfigurationDefinition();

        $this->createMetadataDefinition();
        $this->createManagerDefinition();
        $this->createRepositoryDefinition();
        $this->createOperatorDefinition();

        // TODO search repository service

        $this->createControllerDefinition();

        $this->createFormDefinition();
        $this->createTableDefinition();

        $this->configureTranslations();

        return $this;
    }
1328271
public static function createJobsBuilder()
    {
        $builder = new JobsBuilder();
        $builder->addExtension(new Extension\Core\CoreExtension());
        $builder->addExtension(new Extension\ETL\ETLExtension());

        return $builder;
    }
593991
public function build(): GetPartialAXTreeRequest
	{
		$instance = new GetPartialAXTreeRequest();
		$instance->nodeId = $this->nodeId;
		$instance->backendNodeId = $this->backendNodeId;
		$instance->objectId = $this->objectId;
		$instance->fetchRelatives = $this->fetchRelatives;
		return $instance;
	}
503040
public function build()
    {
        if ($this->getContext()) {
            $context = $this->getContext();
        } else {
            $context = new Object2ArrayContext();
        }

        $this->prepareContext($context);

        return new Object2Array($context);
    }
1201443
public function build()
    {
        if (isset($this->component)) {
            return $this->component;
        }

        $this->component = BuildUtil::removeNullElements([
            'type' => ComponentType::SPACER,
            'size' => $this->size,
        ]);

        return $this->component;
    }
63702
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('asf_layout');

        $rootNode
            ->children()
                ->booleanNode('enable_flash_messages')
                    ->defaultTrue()
                ->end()
                ->arrayNode('assets')
                    ->addDefaultsIfNotSet()
                    ->children()
                       ->append($this->addJqueryParameterNode())
                       ->append($this->addTwitterBootstrapParameterNode())
                       ->append($this->addjQueryUIParameterNode())
                       ->append($this->addSelect2ParameterNode())
                       ->append($this->addBazingaJsTranslationParameterNode())
                       ->append($this->addSpeakingURLParameterNode())
                       ->append($this->addTinyMCEParameterNode())
                       ->append($this->addJqueryTagsInputParameterNode())
                       ->append($this->addPrismJSParameterNode())
                       ->booleanNode('fos_js_routing')->defaultFalse()->end()
                    ->end()
                ->end()
                ->scalarNode('components_dir')
                    ->defaultValue(self::COMPONENTS_DIR)
                ->end()
            ->end()
        ;

        return $treeBuilder;
    }
429620
public function getMultipartHelper()
    {
        if ($this->multipartHelper === null) {
            $this->multipartHelper = new MultipartHelper(
                $this->partFactoryService->getMimePartFactory(),
                $this->partFactoryService->getUUEncodedPartFactory(),
                $this->partBuilderFactory,
                $this->getGenericHelper()
            );
        }
        return $this->multipartHelper;
    }
662521
public function getNestedSetBuilder()
    {
        if (!isset($this->nestedSetBuilder)) {
            $this->nestedSetBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'nestedset');
        }

        return $this->nestedSetBuilder;
    }
1203118
public function getConfigTreeBuilder()
    {
        $node = $this->getRootNode();
        $node = $node->children();
        $node = $this->getChildren($node);
        $node = $node->end();

        return $node;
    }
376466
public function getRouteBuilder()
    {
        if (null == $this->routeBuilder) {
            $this->setRouteBuilder(new RouteBuilder($this->getRouteFile()));
        }
        return $this->routeBuilder;
    }