PHP Class pocketmine\utils\UUID

Afficher le fichier Open project: ClearSkyTeam/ClearSky Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $part1, $part2, $part3, $part4, $version = null )
__toString ( )
equals ( UUID $uuid )
fromBinary ( string $uuid, integer $version = null ) : UUID Creates an UUID from a binary representation
fromData ( $data ) : UUID Creates an UUIDv3 from binary data or list of binary data
fromRandom ( )
fromString ( string $uuid, integer $version = null ) : UUID Creates an UUID from an hexadecimal representation
getVersion ( )
toBinary ( )
toString ( )

Method Details

__construct() public méthode

public __construct ( $part1, $part2, $part3, $part4, $version = null )

__toString() public méthode

public __toString ( )

equals() public méthode

public equals ( UUID $uuid )
$uuid UUID

fromBinary() public static méthode

Creates an UUID from a binary representation
public static fromBinary ( string $uuid, integer $version = null ) : UUID
$uuid string
$version integer
Résultat UUID

fromData() public static méthode

Creates an UUIDv3 from binary data or list of binary data
public static fromData ( $data ) : UUID
$data
Résultat UUID

fromRandom() public static méthode

public static fromRandom ( )

fromString() public static méthode

Creates an UUID from an hexadecimal representation
public static fromString ( string $uuid, integer $version = null ) : UUID
$uuid string
$version integer
Résultat UUID

getVersion() public méthode

public getVersion ( )

toBinary() public méthode

public toBinary ( )

toString() public méthode

public toString ( )