Skip to content

Uuid

Properties

value

protected string $value

Methods

__construct

Returns a String object given a PHP native string as parameter.

public __construct(?string $value = null): mixed

Parameters:

Parameter Type Description
$value ?string

fromNative

Returns a String object given a PHP native string as parameter.

public static fromNative(): \Qubus\ValueObjects\StringLiteral\StringLiteral|\Qubus\ValueObjects\ValueObject
  • This method is static.

Throws:


generateAsString

Generate a new Uuid string.

public static generateAsString(): string
  • This method is static.

equals

Tells whether two Uuid are equal by comparing their values.

public equals(\Qubus\ValueObjects\ValueObject $uuid): bool

Parameters:

Parameter Type Description
$uuid \Qubus\ValueObjects\ValueObject

Inherited methods

fromNative

Returns a String object given a PHP native string as parameter.

public static fromNative(): \Qubus\ValueObjects\StringLiteral\StringLiteral|\Qubus\ValueObjects\ValueObject
  • This method is static.

Throws:


__construct

Returns a String object given a PHP native string as parameter.

public __construct(string $value): mixed

Parameters:

Parameter Type Description
$value string

Throws:


toNative

Returns the value of the string.

public toNative(): string

equals

Tells whether two strings are equal by comparing their values

public equals(\Qubus\ValueObjects\StringLiteral\StringLiteral|\Qubus\ValueObjects\ValueObject $stringLiteral): bool

Parameters:

Parameter Type Description
$stringLiteral \Qubus\ValueObjects\StringLiteral\StringLiteral|\Qubus\ValueObjects\ValueObject

isEmpty

Tells whether the String is empty

public isEmpty(): bool

__toString

Returns the string value itself

public __toString(): string


Automatically generated on 2025-10-13