public static function AnnotationException::semanticalErrorConstants

Creates a new AnnotationException describing a constant semantical error.

@since 2.3

Parameters

string $identifier:

string $context:

Return value

AnnotationException

1 call to AnnotationException::semanticalErrorConstants()
DocParser::Constant in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/DocParser.php
Constant ::= integer | string | float | boolean

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/AnnotationException.php, line 63

Class

AnnotationException
Description of AnnotationException

Namespace

Doctrine\Common\Annotations

Code

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