-
Notifications
You must be signed in to change notification settings - Fork 651
/
FakeParserCacheProvider.php
47 lines (36 loc) · 1.06 KB
/
FakeParserCacheProvider.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace Psalm\Tests\Internal\Provider;
use Psalm\Internal\Provider\ParserCacheProvider;
class FakeParserCacheProvider extends ParserCacheProvider
{
public function __construct()
{
}
public function loadStatementsFromCache(string $file_path, int $file_modified_time, string $file_content_hash): ?array
{
return null;
}
public function loadExistingStatementsFromCache(string $file_path): ?array
{
return null;
}
public function saveStatementsToCache(string $file_path, string $file_content_hash, array $stmts, bool $touch_only): void
{
}
public function loadExistingFileContentsFromCache(string $file_path): ?string
{
return null;
}
public function cacheFileContents(string $file_path, string $file_contents): void
{
}
public function deleteOldParserCaches(float $time_before): int
{
$this->existing_file_content_hashes = null;
$this->new_file_content_hashes = [];
return 0;
}
public function saveFileContentHashes(): void
{
}
}