Renamed __toString() to getName()

This commit is contained in:
Philipp Holzer 2019-08-04 16:13:53 +02:00
parent d2211bd6dd
commit 3834d5e129
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
10 changed files with 37 additions and 16 deletions

View file

@ -152,8 +152,11 @@ class ProfilerCache implements ICache, IMemoryCache
}
}
public function __toString()
/**
* {@inheritDoc}
*/
public function GetName()
{
return (string)$this->cache . ' (with profiler)';
return $this->cache->getName() . ' (with profiler)';
}
}