class Uuid implements ParameterizedRule (View source)

Traits

Properties

protected int<0, 8>|"nil"|"max"|null $version

Methods

string
__toString()

Convert the rule to a validation string.

string
formatParameters(array $parameters)

Format parameters for a legacy validation rule string.

version(int|string $version)

Specify the UUID version.

array
toArray()

Get the rule name followed by its parameters.

Details

string __toString()

Convert the rule to a validation string.

Return Value

string

protected string formatParameters(array $parameters)

Format parameters for a legacy validation rule string.

Parameters

array $parameters

Return Value

string

Uuid version(int|string $version)

Specify the UUID version.

Parameters

int|string $version

Return Value

Uuid

array toArray()

Get the rule name followed by its parameters.

Return Value

array