1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-19 03:54:42 +01:00
Matthew Brown da42be175f Apply PHPCS fixes
Fixes #1880
2019-07-05 16:27:53 -04:00

25 lines
368 B
PHP

<?php
declare(strict_types = 1);
namespace Psalm\Internal\LanguageServer;
/**
* Generates unique, incremental IDs for use as request IDs
*/
class IdGenerator
{
/**
* @var int
*/
public $counter = 1;
/**
* Returns a unique ID
*
* @return int
*/
public function generate()
{
return $this->counter++;
}
}