public static function AnnotationException::semanticalErrorConstants in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_annotation_discovery/lib/Doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php \Doctrine\Common\Annotations\AnnotationException::semanticalErrorConstants()
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 modules/
providers/ service_container_annotation_discovery/ lib/ Doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ DocParser.php - Constant ::= integer | string | float | boolean
File
- modules/
providers/ service_container_annotation_discovery/ 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 : ''));
}