original_string: protected function getFieldGetter(\ReflectionClass $reflectionClass, $fieldName)
      {
          foreach (array('get', 'is', 'has') as $prefix) {
              $getter = $prefix.ucfirst($fieldName);
              $reflectionMethod = $reflectionClass->getMethod($getter);
  
              if ($reflectionMethod && $reflectionMethod->isPublic()) {
                  return $reflectionMethod;
              }
          }
  
          throw new EntityListException("The field $fieldName does not exist or is not accessible.");
      }
code: protected function getFieldGetter(\ReflectionClass $reflectionClass, $fieldName)
      {
          foreach (array('get', 'is', 'has') as $prefix) {
              $getter = $prefix.ucfirst($fieldName);
              $reflectionMethod = $reflectionClass->getMethod($getter);
  
              if ($reflectionMethod && $reflectionMethod->isPublic()) {
                  return $reflectionMethod;
              }
          }
  
          throw new EntityListException("The field $fieldName does not exist or is not accessible.");
      }
code_tokens: protected function getFieldGetter ( \ ReflectionClass $ reflectionClass , $ fieldName ) { foreach ( array ( 'get' , 'is' , 'has' ) as $ prefix ) { $ getter = $ prefix . ucfirst ( $ fieldName ) ; $ reflectionMethod = $ reflectionClass -> getMethod ( $ getter ) ; if ( $ reflectionMethod && $ reflectionMethod -> isPublic ( ) ) { return $ reflectionMethod ; } } throw new EntityListException ( "The field $fieldName does not exist or is not accessible." ) ; }
docstring: Returns the Reflection Method of the getter of the field
  
  @param \ReflectionClass $reflectionClass
  @param string $fieldName
  @throws EntityListException
  @return ReflectionMethod
docstring_tokens: Returns the Reflection Method of the getter of the field