original_string: private function configureStartControlProperties(OptionsResolver $resolver)
      {
          $resolver->setDefined('autostart')
              ->setAllowedTypes('autostart', 'bool');
  
          $resolver
              ->setDefined('autorestart')
              ->setAllowedTypes('autorestart', ['bool', 'string'])
              ->setAllowedValues('autorestart', [true, false, 'true', 'false', 'unexpected'])
              ->setNormalizer('autorestart', function (Options $options, $value) {
                  return (is_bool($value) or $value === 'unexpected') ? $value : ($value === 'true' ? true : false);
              });
  
          $resolver->setDefined('startsecs')
              ->setAllowedTypes('startsecs', 'int');
  
          $resolver->setDefined('startretries')
              ->setAllowedTypes('startretries', 'int');
      }
code: private function configureStartControlProperties(OptionsResolver $resolver)
      {
          $resolver->setDefined('autostart')
              ->setAllowedTypes('autostart', 'bool');
  
          $resolver
              ->setDefined('autorestart')
              ->setAllowedTypes('autorestart', ['bool', 'string'])
              ->setAllowedValues('autorestart', [true, false, 'true', 'false', 'unexpected'])
              ->setNormalizer('autorestart', function (Options $options, $value) {
                  return (is_bool($value) or $value === 'unexpected') ? $value : ($value === 'true' ? true : false);
              });
  
          $resolver->setDefined('startsecs')
              ->setAllowedTypes('startsecs', 'int');
  
          $resolver->setDefined('startretries')
              ->setAllowedTypes('startretries', 'int');
      }
code_tokens: private function configureStartControlProperties ( OptionsResolver $ resolver ) { $ resolver -> setDefined ( 'autostart' ) -> setAllowedTypes ( 'autostart' , 'bool' ) ; $ resolver -> setDefined ( 'autorestart' ) -> setAllowedTypes ( 'autorestart' , [ 'bool' , 'string' ] ) -> setAllowedValues ( 'autorestart' , [ true , false , 'true' , 'false' , 'unexpected' ] ) -> setNormalizer ( 'autorestart' , function ( Options $ options , $ value ) { return ( is_bool ( $ value ) or $ value === 'unexpected' ) ? $ value : ( $ value === 'true' ? true : false ) ; } ) ; $ resolver -> setDefined ( 'startsecs' ) -> setAllowedTypes ( 'startsecs' , 'int' ) ; $ resolver -> setDefined ( 'startretries' ) -> setAllowedTypes ( 'startretries' , 'int' ) ; }
docstring: Configures start control related properties.
  
  @param OptionsResolver $resolver
docstring_tokens: Configures start control related properties .