PocketMine
UUID Class Reference

Public Member Functions

 __construct ($part1=0, $part2=0, $part3=0, $part4=0, $version=null)
 
 getVersion ()
 
 equals (UUID $uuid)
 
 toBinary ()
 
 toString ()
 
 __toString ()
 

Static Public Member Functions

static fromString ($uuid, $version=null)
 
static fromBinary ($uuid, $version=null)
 
static fromData (...$data)
 
static fromRandom ()
 

Member Function Documentation

static fromBinary (   $uuid,
  $version = null 
)
static

Creates an UUID from a binary representation

Parameters
string$uuid
int$version
Returns
UUID
static fromData (   $data)
static

Creates an UUIDv3 from binary data or list of binary data

Parameters
string...$data
Returns
UUID
static fromString (   $uuid,
  $version = null 
)
static

Creates an UUID from an hexadecimal representation

Parameters
string$uuid
int$version
Returns
UUID

The documentation for this class was generated from the following file: