class PresentUnless implements ParameterizedRule (View source)

Traits

Properties

protected string $anotherField
protected array $values

Methods

string
__toString()

Convert the rule to a validation string.

string
formatParameters(array $parameters)

Format parameters for a legacy validation rule string.

__construct(string $anotherField, string|int|float|bool|null|array $values)

Create a new present_unless rule instance.

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

__construct(string $anotherField, string|int|float|bool|null|array $values)

Create a new present_unless rule instance.

Parameters

string $anotherField
string|int|float|bool|null|array $values

array toArray()

Get the rule name followed by its parameters.

Return Value

array