/**
* Checks if the cache is fresh.
*
* @param string $cacheKey
*
* @return bool
*/
private function isCacheFresh($cacheKey, ReflectionClass
$class) { $lastModification =
$this->
getLastModification($class);
if ($lastModification === 0
) { return true;
} return $this->cache->
fetch('[C]' .
$cacheKey) >=
$lastModification;
} /**
* Returns the time the class was last modified, testing traits and parents
*/
private function getLastModification(ReflectionClass
$class): int
{