public function getOwnConstant($name)
{
if (isset($this->getOwnConstants()[$name])) {
return $this->getOwnConstants()[$name];
}
throw new InvalidArgumentException(sprintf('Constant %s does not exist in class %s', $name, $this->reflection->getName()));
}