original_string: public function guessType($class, $property)
      {
          $reflClass = new \ReflectionClass($class);
          if ($reflClass->hasProperty($property)) {
              $reflProp = $reflClass->getProperty($property);
              if ($reflProp->isPublic()) {
                  return null;
              }
          }
  
          if (!$reflClass->hasMethod('get' . ucfirst($property)) && ($reflClass->hasMethod('is' . ucfirst($property)) || $reflClass->hasMethod('has' . ucfirst($property)))) {
              return new TypeGuess('boolean', array(), Guess::HIGH_CONFIDENCE);
          }
      }
code: public function guessType($class, $property)
      {
          $reflClass = new \ReflectionClass($class);
          if ($reflClass->hasProperty($property)) {
              $reflProp = $reflClass->getProperty($property);
              if ($reflProp->isPublic()) {
                  return null;
              }
          }
  
          if (!$reflClass->hasMethod('get' . ucfirst($property)) && ($reflClass->hasMethod('is' . ucfirst($property)) || $reflClass->hasMethod('has' . ucfirst($property)))) {
              return new TypeGuess('boolean', array(), Guess::HIGH_CONFIDENCE);
          }
      }
code_tokens: public function guessType ( $ class , $ property ) { $ reflClass = new \ ReflectionClass ( $ class ) ; if ( $ reflClass -> hasProperty ( $ property ) ) { $ reflProp = $ reflClass -> getProperty ( $ property ) ; if ( $ reflProp -> isPublic ( ) ) { return null ; } } if ( ! $ reflClass -> hasMethod ( 'get' . ucfirst ( $ property ) ) && ( $ reflClass -> hasMethod ( 'is' . ucfirst ( $ property ) ) || $ reflClass -> hasMethod ( 'has' . ucfirst ( $ property ) ) ) ) { return new TypeGuess ( 'boolean' , array ( ) , Guess :: HIGH_CONFIDENCE ) ; } }
docstring: If a property has an isser or a hasser and not getter, it is assumed to be a boolean type
  
  @param string $class    The fully qualified class name
  @param string $property The name of the property to guess for
  
  @return TypeGuess|null A guess for the field's type and options
docstring_tokens: If a property has an isser or a hasser and not getter it is assumed to be a boolean type