1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +01:00
psalm/tests/Internal/Provider/ProjectCacheProvider.php
2020-09-22 01:10:46 -04:00

42 lines
714 B
PHP

<?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(): int
{
return $this->last_run;
}
/**
* @return void
*/
public function processSuccessfulRun(float $start_time)
{
$this->last_run = (int) $start_time;
}
public function canDiffFiles(): bool
{
return $this->last_run > 0;
}
public function hasLockfileChanged() : bool
{
return false;
}
public function updateComposerLockHash() : void
{
}
}