1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests/Internal/Provider/ProjectCacheProvider.php

39 lines
728 B
PHP
Raw Normal View History

<?php
namespace Psalm\Tests\Internal\Provider;
class ProjectCacheProvider extends \Psalm\Internal\Provider\ProjectCacheProvider
{
/**
* @var int
*/
private $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
{
}
}