1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00
psalm/tests/Provider/FakeParserCacheProvider.php

64 lines
1.5 KiB
PHP

<?php
namespace Psalm\Tests\Provider;
use PhpParser;
class FakeParserCacheProvider extends \Psalm\Provider\ParserCacheProvider
{
/**
* @param string $file_content_hash
* @param string $file_cache_key
* @param mixed $file_modified_time
*
* @return array<int, PhpParser\Node\Stmt>|null
*/
public function loadStatementsFromCache($file_modified_time, $file_content_hash, $file_cache_key)
{
return null;
}
/**
* @param string $file_content_hash
* @param string $file_cache_key
* @param mixed $file_modified_time
*
* @return array<int, PhpParser\Node\Stmt>|null
*/
public function loadExistingStatementsFromCache($file_cache_key)
{
return null;
}
/**
* @param string $file_cache_key
* @param string $file_content_hash
* @param array<int, PhpParser\Node\Stmt> $stmts
* @param bool $touch_only
*
* @return void
*/
public function saveStatementsToCache($file_cache_key, $file_content_hash, array $stmts, $touch_only)
{
}
/**
* @param string $file_cache_key
*
* @return string|null
*/
public function loadExistingFileContentsFromCache($file_cache_key)
{
return null;
}
/**
* @param string $file_cache_key
* @param string $file_contents
*
* @return void
*/
public function cacheFileContents($file_cache_key, $file_contents)
{
}
}