ISnowflakeDecoder
in
Nextcloud Snowflake ID decoder
Tags
Attributes
- #[Consumable]
- $since: '33.0.0'
Table of Contents
Methods
Methods
decode()
Decode information contained into Snowflake ID
public
decode(string $snowflakeId) : Snowflake
It includes:
- server ID: identify server on which ID was generated
- sequence ID: sequence number (number of snowflakes generated in the same second)
- createdAt: timestamp at which ID was generated
- isCli: if ID was generated using CLI or not
Parameters
- $snowflakeId : string