public static function AnnotationException::semanticalErrorConstants in Plug 7
Creates a new AnnotationException describing a constant semantical error.
@since 2.3
Parameters
string $identifier:
string $context:
Return value
1 call to AnnotationException::semanticalErrorConstants()
- DocParser::Constant in lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ DocParser.php - Constant ::= integer | string | float | boolean
File
- lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationException.php, line 96
Class
- AnnotationException
- Description of AnnotationException
Namespace
Doctrine\Common\AnnotationsCode
public static function semanticalErrorConstants($identifier, $context = null) {
return self::semanticalError(sprintf("Couldn't find constant %s%s.", $identifier, $context ? ', ' . $context : ''));
}