File "NullDiscoverCacheDriver.php"
Full Path: /var/www/html/back/vendor/spatie/php-structure-discoverer/src/Cache/NullDiscoverCacheDriver.php
File size: 556 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Spatie\StructureDiscoverer\Cache;
use Exception;
class NullDiscoverCacheDriver implements DiscoverCacheDriver
{
public function has(string $id): bool
{
return false;
}
/**
* @return array<string>
*/
public function get(string $id): array
{
throw new Exception('Null driver cannot get a cached item');
}
/** @param array<string> $discovered */
public function put(string $id, array $discovered): void
{
}
public function forget(string $id): void
{
}
}