public static function AnnotationException::requiredError

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

AnnotationException

1 call to AnnotationException::requiredError()

File

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

Class

AnnotationException
Description of AnnotationException

Namespace

Doctrine\Common\Annotations

Code

public static function requiredError($attributeName, $annotationName, $context, $expected) {
  return new self(sprintf('[Type Error] Attribute "%s" of @%s declared on %s expects %s. This value should not be null.', $attributeName, $annotationName, $context, $expected));
}