class->name; $sProperty = $oExpr->name->name; if ('class' === $sProperty){ return $sClassName; } if (class_exists($sClassName)){ $class = new \ReflectionClass($sClassName); if (array_key_exists($sProperty, $class->getConstants())) { $oReflectionConstant = $class->getReflectionConstant($sProperty); if ($oReflectionConstant->isPublic()){ return $class->getConstant($sProperty); } } } return null; } }