| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | class Runtime implements IdentifierInterface |
||
| 29 | { |
||
| 30 | /** @var string */ |
||
| 31 | protected static string $identifier = ''; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get the current or new unique identifier. |
||
| 35 | * |
||
| 36 | * @return string The identifier |
||
| 37 | */ |
||
| 38 | 18 | public function get(): string |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Regenerate the identifier. |
||
| 49 | * |
||
| 50 | * @return string The identifier |
||
| 51 | */ |
||
| 52 | 1 | public function regenerate(): string |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Forget the identifier. |
||
| 63 | * |
||
| 64 | * @return void |
||
| 65 | */ |
||
| 66 | public function forget(): void |
||
| 71 |