/**
* @throws \ReflectionException when a parent class/interface/trait is not found
*/
public function isFresh(int
$timestamp): bool
{ $loaded =
class_exists($this->resource, false
) ||
interface_exists($this->resource, false
) ||
trait_exists($this->resource, false
);
if (null !==
$exists = &self::
$existsCache[$this->resource
]) { if ($loaded) { $exists =
[true, null
];
} elseif (0 >=
$timestamp && !
$exists[0
] && null !==
$exists[1
]) { throw new \
ReflectionException($exists[1
]);
} } elseif ([false, null
] ===
$exists =
[$loaded, null
]) { if (!self::
$autoloadLevel++
) { spl_autoload_register(__CLASS__.'::throwOnRequiredClass'
);
} $autoloadedClass = self::
$autoloadedClass;
self::
$autoloadedClass =
ltrim($this->resource, '\\'
);
try { $exists[0
] =
class_exists($this->resource
) ||
interface_exists($this->resource, false
) ||
trait_exists($this->resource, false
);
} catch (\Exception
$e) {