Returns a builder definition.

@return array
767348
public function get()
    {
        return [
            'type' => 'typeof',
            'left' => $this->leftOperand->get(),
            'file' => $this->file,
            'line' => $this->line,
            'char' => $this->char,
        ];
    }
968376
protected function getBuilder()
    {
        $isArray = false;

        // guess builder type based on arguments
        if ($this->actions) {
            /** @var Action $action */
            $action = reset($this->actions);
            $arguments = $action->getArguments();
            if ($arguments) {
                $argument = reset($arguments);
                if (is_array($argument)) {
                    $isArray = true;
                }
            }
        }

        if ($isArray) {
            return new ArrayOptionValueBuilder();
        }

        return new StringOptionValueBuilder();
    }
666312
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('sidus_eav_variant');
        $familyDefinition = $rootNode
            ->children()
            ->arrayNode('routes')
            ->children()
            ->scalarNode('select')->isRequired()->end()
            ->scalarNode('create')->isRequired()->end()
            ->scalarNode('edit')->isRequired()->end()
            ->scalarNode('delete')->isRequired()->end()
            ->end()
            ->end()
            ->arrayNode('families')
            ->prototype('array')
            ->children();

        $this->appendFamilyDefinition($familyDefinition);

        $familyDefinition->end()
            ->end()
            ->end()
            ->end();

        return $treeBuilder;
    }
1210492
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $treeBuilder->root('e_xpansion_admin_groups')
            ->children()
                ->arrayNode('groups')
                    ->prototype('array')
                        ->children()
                            ->variableNode('label')->end()
                            ->arrayNode('logins')->prototype('scalar')->end()->end()
                            ->arrayNode('permissions')->prototype('scalar')->end()->end()
                        ->end()
                    ->end()
                ->end()
                ->arrayNode('permissions')
                    ->prototype('scalar')->end()
                ->end()
            ->end();

        return $treeBuilder;
    }
406944
protected function getContainerBuilder()
    {
        if ($this->containerBuilder) {
            return $this->containerBuilder;
        }

        $kernel = $this->getApplication()->getKernel();

        if (!$kernel->isDebug() || !(new ConfigCache($kernel->getContainer()->getParameter('debug.container.dump'), true))->isFresh()) {
            $buildContainer = \Closure::bind(function () { return $this->buildContainer(); }, $kernel, \get_class($kernel));
            $container = $buildContainer();
        } else {
            (new XmlFileLoader($container = new ContainerBuilder(), new FileLocator()))->load($kernel->getContainer()->getParameter('debug.container.dump'));
            $container->setParameter('container.build_hash', $hash = ContainerBuilder::hash(__METHOD__));
            $container->setParameter('container.build_id', hash('crc32', $hash.time()));
        }

        $container->getCompilerPassConfig()->setRemovingPasses([]);
        $container->compile();

        return $this->containerBuilder = $container;
    }
49534
public static function getBuilderName()
    {
        $builderName = null;
        if (self::functionAvailable('exec')) {
            $output = [];
            $success = 0;
            exec('whoami', $output, $success);
            if ($success == 0) {
                $builderName = $output[0];
            }
        }
        if (is_null($builderName)) {
            $builderName = get_current_user();
        }

        return $builderName;
    }
203894
public function getConfigTreeBuilder()
    {
        $builder = new TreeBuilder();
        $twig    = $builder->root('twig');
        {
            $twig->children()->scalarNode('template_dir');
            $twig->children()->scalarNode('cache_dir')->defaultValue(null);
            $twig->children()->scalarNode('asset_base')->defaultValue('');
            $twig->children()->variableNode('globals')->defaultValue([]);
        }

        return $builder;
    }
885212
public Builder toBuilder() {
		return builder()
			.name(_name)
			.cmt(_comment)
			.desc(_description)
			.src(_source)
			.links(_links)
			.number(_number)
			.points(_points);
	}
970083
public function run(Builder $builder): Builder
    {
        return $builder->where('created_at', '>', $this->request->input('created_at.start'))
            ->where('created_at', '<', $this->request->input('created_at.end'));
    }
767457
public function getConfigTreeBuilder()
    {
        $builder  = new TreeBuilder();
        $firewall = $builder->root('firewall');
        {
            $firewall->children()->variableNode('pattern')->isRequired();
            $firewall->children()->variableNode('policies')->isRequired();
            $firewall->children()->variableNode('users')->isRequired();
            $firewall->children()->booleanNode('stateless')->defaultValue('false');
            $firewall->children()->variableNode('misc')->defaultValue([]);
        }

        return $builder;
    }
430833
public function getConfigTreeBuilder()
    {
        $builder = new TreeBuilder();
        $routing = $builder->root('routing');
        {
            $routing->children()->scalarNode('path');
            $routing->children()->scalarNode('cache_dir')->defaultValue(null);
            $routing->children()->variableNode('namespaces')->beforeNormalization()->ifString()->then(
                function ($v) {
                    return [$v];
                }
            );
        }

        return $builder;
    }
462644
public function getConfigTreeBuilder()
    {
        $builder  = new TreeBuilder();
        $security = $builder->root('security');
        {
            /** @var ArrayNodeDefinition $policies */
            $policies = $security->children()->arrayNode('policies');
            {
                $policies->prototype('variable');
            }
            /** @var ArrayNodeDefinition $firewalls */
            $firewalls = $security->children()->arrayNode('firewalls');
            {
                $firewalls->prototype('variable');
            }
            /** @var ArrayNodeDefinition $accessRules */
            $accessRules = $security->children()->arrayNode('access_rules');
            {
                $accessRules->prototype('variable');
            }
            $roleHierarchy = $security->children()->arrayNode('role_hierarchy');
            {
                $roleHierarchy->prototype('variable')->beforeNormalization()->ifString()->then(
                    function ($v) {
                        return [$v];
                    }
                );
            }
        }

        return $builder;
    }
662521
public function getNestedSetBuilder()
    {
        if (!isset($this->nestedSetBuilder)) {
            $this->nestedSetBuilder = $this->getGeneratorConfig()->getConfiguredBuilder($this->getTable(), 'nestedset');
        }

        return $this->nestedSetBuilder;
    }
93481
protected function initializeFromBuilder(Builder $builder)
    {
        $this->setModel($builder->getModel())
            ->setEagerLoads($builder->getEagerLoads());

        $builder->macro('getProtected', function (Builder $builder, string $property) {
            return $builder->{$property};
        });

        $this->scopes = $builder->getProtected('scopes');

        $this->localMacros = $builder->getProtected('localMacros');

        $this->onDelete = $builder->getProtected('onDelete');
    }
1243827
public function getConfigTreeBuilder()
    {
        $tree_builder = new TreeBuilder();
        $root_node    = $tree_builder->root('twitter_api_client');

        $root_node
            ->children()
                ->arrayNode('twitter')
                    ->children()
                        ->scalarNode('api_key')->end()
                        ->scalarNode('api_secret')->end()
                    ->end()
                ->end()
            ->end()
        ;

        return $tree_builder;
    }
992523
public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root( 'userfriendly_social_user' );

        $supportedDrivers = array( 'orm' );
        //$supportedDrivers = array( 'orm', 'mongodb' );

        $rootNode
            ->children()
                ->scalarNode( 'db_driver' )
                    ->validate()
                        ->ifNotInArray( $supportedDrivers )
                        ->thenInvalid( 'The driver %s is not supported. Please choose one of ' . json_encode( $supportedDrivers ))
                    ->end()
                    ->cannotBeOverwritten()
                    ->isRequired()
                    ->cannotBeEmpty()
                ->end()
                ->scalarNode( 'firewall_name' )->isRequired()->cannotBeEmpty()->end()
                ->scalarNode( 'user_class' )->isRequired()->cannotBeEmpty()->end()
                ->scalarNode( 'user_identity_class' )->defaultNull()->end()
                ->scalarNode( 'group_class' )->defaultNull()->end()
                ->scalarNode( 'model_manager_name' )->defaultNull()->end()
                ->scalarNode( 'mailsubject_emailchange' )->end()
                ->scalarNode( 'mailsubject_accountdetails' )->end()
            ->end();

        $this->defineResourceOwnerConfig( $rootNode );

        return $treeBuilder;
    }
1053000
public function getConfigTreeBuilder()
    {
        $builder = new TreeBuilder();

        $builder->root('alchemy_queue')
            ->children()
                ->scalarNode('logger')->defaultNull()->end()
                ->arrayNode('queues')
                    ->useAttributeAsKey('name', true)
                    ->prototype('array')
                        ->children()
                            ->scalarNode('registry')->defaultValue(null)->end()
                            ->scalarNode('name')->end()
                            ->scalarNode('host')->end()
                            ->scalarNode('port')->defaultValue(5672)->end()
                            ->scalarNode('vhost')->defaultValue('/')->end()
                            ->scalarNode('user')->defaultValue('guest')->end()
                            ->scalarNode('password')->defaultValue('guest')->end()
                            ->scalarNode('timeout')->defaultValue(0)->end()
                        ->end()
                    ->end()
                ->end();

        return $builder;
    }