hasConstant($constant)) { $this->value = $reflection->getConstant($constant); return; } } catch (\ReflectionException $e) { } } // Handle procedural constants. if (!$this->value && defined($string)) { $this->value = constant($string); return; } throw AnnotationException::semanticalErrorConstants($this->value); } /** * {@inheritdoc} */ public function get() { return $this->value; } }