1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/tests/Internal/Provider/ProjectCacheProvider.php
orklah 6e3546d900
return types (#4311)
* return types

* remove willReturn for void methods
2021-01-29 11:39:53 +01:00

39 lines
684 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;
}
public function processSuccessfulRun(float $start_time): void
{
$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
{
}
}