mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +01:00
1348e61afb
* add native param types * redundant phpdoc * add more param types and adds "?" to nullable types * remove redundant phpdoc * add more param types and remove redundant phpdoc * add more param types and remove redundant phpdoc
45 lines
754 B
PHP
45 lines
754 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()
|
|
{
|
|
}
|
|
|
|
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
|
|
{
|
|
}
|
|
}
|