public static function semanticalErrorConstants($identifier, $context = null)
    {
        return self::semanticalError(sprintf(
            "Couldn't find constant %s%s.",
            $identifier,
            $context ? ', ' . $context : ''
        ));
    }
public static function semanticalErrorConstants($identifier, $context = null)
    {
        return self::semanticalError(sprintf(
            "Couldn't find constant %s%s.",
            $identifier,
            $context ? ', ' . $context : ''
        ));
    }
public static function semanticalErrorConstants ( $ identifier , $ context = null ) { return self :: semanticalError ( sprintf ( "Couldn't find constant %s%s." , $ identifier , $ context ? ', ' . $ context : '' ) ) ; }
Creates a new AnnotationException describing a constant semantical error.

@since 2.3

@param string $identifier
@param string $context

@return AnnotationException
Creates a new AnnotationException describing a constant semantical error .