1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 17:27:28 +01:00
psalm/tests/Internal/Provider/ProjectCacheProvider.php

41 lines
785 B
PHP
Raw Normal View History

<?php
2023-10-19 13:12:06 +02:00
declare(strict_types=1);
namespace Psalm\Tests\Internal\Provider;
2021-12-03 22:44:41 +01:00
use Psalm\Internal\Provider\ProjectCacheProvider as PsalmProjectCacheProvider;
class ProjectCacheProvider extends PsalmProjectCacheProvider
{
2022-12-16 19:58:47 +01:00
private int $last_run = 0;
public function __construct()
{
}
public function getLastRun(string $psalm_version): int
{
return $this->last_run;
}
public function processSuccessfulRun(float $start_time, string $psalm_version): void
{
$this->last_run = (int) $start_time;
}
public function canDiffFiles(): bool
{
return $this->last_run > 0;
}
public function hasLockfileChanged(): bool
{
2020-04-12 18:02:19 +02:00
return false;
}
public function updateComposerLockHash(): void
{
}
}