public static functionrequireValue(string $className, string $constantName) {
$constant = self::getFullName($className, $constantName);
if (!defined($constant)) {
thrownewLogicException(sprintf('The class "%s" does not have a constant "%s"', $className, $constantName));
}
returnconstant($constant);
}