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.");
    }
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.");
    }
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." ) ; }
Returns the Reflection Method of the getter of the field

@param \ReflectionClass $reflectionClass
@param string $fieldName
@throws EntityListException
@return ReflectionMethod
Returns the Reflection Method of the getter of the field