public static function AnnotationException::requiredError in Plug 7
Creates a new AnnotationException describing an required error of an attribute.
@since 2.2
Parameters
string $attributeName:
string $annotationName:
string $context:
string $expected:
Return value
1 call to AnnotationException::requiredError()
- DocParser::Annotation in lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ DocParser.php - Annotation ::= "@" AnnotationName MethodCall AnnotationName ::= QualifiedName | SimpleName QualifiedName ::= NameSpacePart "\" {NameSpacePart "\"}* SimpleName NameSpacePart ::= identifier | null | false |…
File
- lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationException.php, line 142
Class
- AnnotationException
- Description of AnnotationException
Namespace
Doctrine\Common\AnnotationsCode
public static function requiredError($attributeName, $annotationName, $context, $expected) {
return self::typeError(sprintf('Attribute "%s" of @%s declared on %s expects %s. This value should not be null.', $attributeName, $annotationName, $context, $expected));
}