mirror of
https://github.com/danog/psalm.git
synced 2024-12-13 17:57:37 +01:00
53 lines
847 B
PHP
53 lines
847 B
PHP
<?php
|
|
namespace Psalm\Tests\Internal\Provider;
|
|
|
|
use function microtime;
|
|
use PhpParser;
|
|
|
|
class ProjectCacheProvider extends \Psalm\Internal\Provider\ProjectCacheProvider
|
|
{
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $last_run = 0;
|
|
|
|
public function __construct()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getLastRun()
|
|
{
|
|
return $this->last_run;
|
|
}
|
|
|
|
/**
|
|
* @param float $start_time
|
|
*
|
|
* @return void
|
|
*/
|
|
public function processSuccessfulRun($start_time)
|
|
{
|
|
$this->last_run = (int) $start_time;
|
|
}
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function canDiffFiles()
|
|
{
|
|
return $this->last_run > 0;
|
|
}
|
|
|
|
public function hasLockfileChanged() : bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function updateComposerLockHash() : void
|
|
{
|
|
}
|
|
}
|