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
orklah 1348e61afb
add native param types (#4137)
* 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
2021-01-29 11:38:54 +01:00

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
{
}
}