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();
    }
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();
    }
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 ( ) ; }
Returns options builder based on values in value bag

@return OptionValueBuilderInterface
Returns options builder based on values in value bag