Uuid implements Stringable
Read onlyYes
FinalYes
Interfaces
- Stringable
Constants
- UUID_REGEXP = '/\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/ms'
- This regexp is a port of the Uuid library, which is copyright Ben Ramsey, @see https://github.com/ramsey/uuid.
Methods
- __construct() : mixed
- __toString() : string
- fromString() : self
- isEqual() : bool
- toString() : string
Constants
UUID_REGEXP
This regexp is a port of the Uuid library, which is copyright Ben Ramsey, @see https://github.com/ramsey/uuid.
public
mixed
UUID_REGEXP
= '/\A[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\z/ms'
Methods
__construct()
public
__construct(string|UuidInterface|Uuid $value) : mixed
Parameters
- $value : string|UuidInterface|Uuid
Tags
__toString()
public
__toString() : string
Return values
stringfromString()
public
static fromString(string $value) : self
Parameters
- $value : string
Return values
selfisEqual()
public
isEqual(self $type) : bool
Parameters
- $type : self
Return values
booltoString()
public
toString() : string