code: private function getOptionsResolver()
      {
          if (null !== $this->optionsResolver) {
              return $this->optionsResolver;
          }
  
          $resolver = new OptionsResolver();
          $resolver
              ->setDefaults([
                  'private'    => false,
                  'editable'   => false,
                  'taxes_view' => true,
                  'ati'        => null,
                  'locale'     => \Locale::getDefault(),
                  'template'   => function (Options $options) {
                      if (true === $options['editable']) {
                          return $this->editableTemplate;
                      }
  
                      return $this->defaultTemplate;
                  },
              ])
              ->setAllowedTypes('private', 'bool')
              ->setAllowedTypes('editable', 'bool')
              ->setAllowedTypes('taxes_view', 'bool')
              ->setAllowedTypes('ati', ['null', 'bool'])
              ->setAllowedTypes('locale', 'string')
              ->setAllowedTypes('template', ['null', 'string']);
  
          return $this->optionsResolver = $resolver;
      }
docs: Returns the options resolver.
  
  @return OptionsResolver