http://www.phpfastcache.com * @author Georges.L (Geolim4) * */ namespace phpFastCache\Core; /** * Trait ClassNamespaceResolverTrait * @package phpFastCache\Core */ trait ClassNamespaceResolverTrait { /** * @return string */ protected function getClassNamespace() { static $namespace; if (!$namespace) { $namespace = (new \ReflectionObject($this))->getNamespaceName(); } return $namespace; } }