You are here

public static function AnnotationException::semanticalErrorConstants in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/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

AnnotationException

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

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php, line 96

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 : ''));
}