{@inheritDoc}
@see \rocket\ei\component\prop\ScalarEiProp::buildScalarValue()
494038
public function getScalarEiProperty(): ?ScalarEiProperty {
		return new CommonScalarEiProperty($this, null, function ($value) {
			ArgUtils::valScalar($value, true);
			if ($value === null) return null;
			return (int) $value;
		});
	}
999598
public function build(): SetShowDebugBordersRequest
	{
		$instance = new SetShowDebugBordersRequest();
		if ($this->show === null) {
			throw new BuilderException('Property [show] is required.');
		}
		$instance->show = $this->show;
		return $instance;
	}
1366038
public function build(): SetAdBlockingEnabledRequest
	{
		$instance = new SetAdBlockingEnabledRequest();
		if ($this->enabled === null) {
			throw new BuilderException('Property [enabled] is required.');
		}
		$instance->enabled = $this->enabled;
		return $instance;
	}
224041
public function getConfigTreeBuilder()
    {
        $builder = new TreeBuilder();

        $rootNode = $builder->root('best_it_ct_order_export');

        $rootNode
            ->children()
                ->arrayNode('commercetools_client')
                    ->isRequired()
                    ->children()
                        ->scalarNode('id')->cannotBeEmpty()->isRequired()->end()
                        ->scalarNode('secret')->cannotBeEmpty()->isRequired()->end()
                        ->scalarNode('project')->cannotBeEmpty()->isRequired()->end()
                        ->scalarNode('scope')->cannotBeEmpty()->isRequired()->end()
                    ->end()
                ->end()
                ->scalarNode('filesystem')
                    ->info('Please provide the service id for your flysystem file system.')
                    ->isRequired()
                ->end()
                ->scalarNode('logger')
                    ->info('Please provide the service id for your logging service.')
                    ->defaultValue('logger')
                ->end()
                ->arrayNode('orders')
                    ->children()
                        ->booleanNode('with_pagination')
                            ->defaultValue(true)
                            ->info(
                                'Should we use a paginated list of orders (or is the result list changing by "itself")?'
                            )
                        ->end()
                        ->arrayNode('default_where')
                            ->info(
                                'Add where clauses for orders: ' .
                                    'https://dev.commercetools.com/http-api-projects-orders.html#query-orders'
                            )
                            ->prototype('scalar')->end()
                        ->end()
                        ->scalarNode('file_template')
                            ->info('Which template is used for the export of a single order?')
                            ->defaultValue('detail.xml.twig')
                        ->end()
                        ->scalarNode('name_scheme')
                            ->defaultValue('order_{{id}}_{{YmdHis}}.xml')
                            ->info(
                                'Provide an order field name or a format string for the date function enclosed ' .
                                'with {{ and }}.'
                            )
                        ->end()
                    ->end()
                ->end();

        return $builder;
    }
1285269
public function build(): AttachToTargetRequest
	{
		$instance = new AttachToTargetRequest();
		if ($this->targetId === null) {
			throw new BuilderException('Property [targetId] is required.');
		}
		$instance->targetId = $this->targetId;
		$instance->flatten = $this->flatten;
		return $instance;
	}
1286775
public function build(): SetShowAdHighlightsRequest
	{
		$instance = new SetShowAdHighlightsRequest();
		if ($this->show === null) {
			throw new BuilderException('Property [show] is required.');
		}
		$instance->show = $this->show;
		return $instance;
	}
1307252
public function build(): SetShowPaintRectsRequest
	{
		$instance = new SetShowPaintRectsRequest();
		if ($this->result === null) {
			throw new BuilderException('Property [result] is required.');
		}
		$instance->result = $this->result;
		return $instance;
	}
311343
public function build(): SendMessageToTargetRequest
	{
		$instance = new SendMessageToTargetRequest();
		if ($this->message === null) {
			throw new BuilderException('Property [message] is required.');
		}
		$instance->message = $this->message;
		$instance->sessionId = $this->sessionId;
		$instance->targetId = $this->targetId;
		return $instance;
	}
274602
public function build()
    {
        $config = $this->classMetadata->getExtension(Fluent::EXTENSION_NAME);

        $config['loggable'] = true;
        $config['versioned'] = array_unique(array_merge(
            isset($config['versioned']) ? $config['versioned'] : [],
            [
                $this->fieldName,
            ]
        ));

        $this->classMetadata->addExtension(Fluent::EXTENSION_NAME, $config);
    }
563782
public function build()
	{
		$listMapper = $this->getMapper();

		$model      = $this->getModel();
		$items      = $model::with([]);
		$primaryKey = (new $model)->getKeyName();

		// Field ordering
		if (Input::has('_order_by')) {
			$items->orderBy(Input::get('_order_by'), Input::get('_order'));
		}

		// Field filters
		foreach (Input::all() as $key => $value) {
			if (empty($value) || substr($key, 0, 1) == '_' || $key == 'page') {
				continue;
			}

			$items->where($key, 'LIKE', '%' . $value . '%');
		}

		// Result scopes
		if (Input::has('_scope')) {
			$items->{Input::get('_scope')}();
		}

		$items = $items->paginate($listMapper->getAdmin()->getPerPage());
		$this->setPaginator($items);

		$result = [];
		foreach ($items as $item) {
			$row = new ListResult;
			$row->setIdentifier($item->{$primaryKey});

			foreach ($listMapper->getFields() as $field) {
				$clone = clone $field;
				$name  = $clone->getName();
				$value = $item->{$name};

				if ($clone->hasBefore()) {
					$before = $clone->getBefore();
					$value  = $before($value);
				}

				if ($clone->isMultiple()) {
					$value = Value::decode(Config::get('bauhaus::admin.multiple-serializer'), $value);
					$value = implode(', ', $value);
				}

				$clone
					->setContext(BaseField::CONTEXT_LIST)
					->setRowId($item->{$primaryKey})
					->setValue($value);

				$row->addField($name, $clone);
			}

			$result[] = $row;
		}

		$this->setResult($result);
	}
615677
protected function build()
    {
        // Check for config file
        $configFile = __dir__ . DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'googleconfig.php';
        if (!file_exists($configFile))
            throw new \ErrorException('Unable to find config file.');
        $this->configData = require $configFile;
        // Validate Key parameter
        if (!Arr::has($this->configData,'key'))
            throw new \ErrorException('Unable to find Key parameter in configuration file.');
        // Validate service config
        if (!Arr::has($this->configData, 'service.' . $this->service))
            throw new \ErrorException('Unable to find '.$this->service.' parameter in configuration file.');
        $this->setService();
        // set default endpoint
        $this->setEndpoint();
        // is service key set, use it, otherwise use default key
        if(is_null($this->getApiKey()))
            $this->apiKey = (!$this->getService('key')) ? $this->getConfig('key') : $this->getService('key');
        // set service url
        $this->requestUrl = UrlHandler::parse($this->getService('url'));
        // is ssl_verify_peer key set, use it, otherwise use default key
        $this->verifySSL = (bool)$this->getConfig('ssl_verify_peer');
    }
135731
public function build(): SetPlaybackRateRequest
	{
		$instance = new SetPlaybackRateRequest();
		if ($this->playbackRate === null) {
			throw new BuilderException('Property [playbackRate] is required.');
		}
		$instance->playbackRate = $this->playbackRate;
		return $instance;
	}
946899
public function build(): SetCPUThrottlingRateRequest
	{
		$instance = new SetCPUThrottlingRateRequest();
		if ($this->rate === null) {
			throw new BuilderException('Property [rate] is required.');
		}
		$instance->rate = $this->rate;
		return $instance;
	}
965815
public function build(): StopWorkerRequest
	{
		$instance = new StopWorkerRequest();
		if ($this->versionId === null) {
			throw new BuilderException('Property [versionId] is required.');
		}
		$instance->versionId = $this->versionId;
		return $instance;
	}
880908
public function build($index, $default = null, $params = [])
    {
        $class = $this->get($index, $default);
        if (!class_exists($class)) {
            throw new \Exception('Class doesn\'t exist for the index : ' .$index);
        }

        $class = new \ReflectionClass($class);
        return $class->newInstanceArgs($params);
    }
1225617
public function build(): GetStackTraceRequest
	{
		$instance = new GetStackTraceRequest();
		if ($this->stackTraceId === null) {
			throw new BuilderException('Property [stackTraceId] is required.');
		}
		$instance->stackTraceId = $this->stackTraceId;
		return $instance;
	}
105985
public function build(): ExposeDevToolsProtocolRequest
	{
		$instance = new ExposeDevToolsProtocolRequest();
		if ($this->targetId === null) {
			throw new BuilderException('Property [targetId] is required.');
		}
		$instance->targetId = $this->targetId;
		$instance->bindingName = $this->bindingName;
		return $instance;
	}