http://www.phpfastcache.com * @author Georges.L (Geolim4) * */ namespace phpFastCache\Util; /** * Trait ClassNamespaceResolverTrait * @package phpFastCache\Core */ trait ClassNamespaceResolverTrait { /** * @var string */ protected $namespace; /** * @return string */ protected function getClassNamespace() { if (!$this->namespace) { $this->namespace = substr(static::class, 0, strrpos(static::class, '\\')); } return $this->namespace; } }