class In (View source)

Properties

protected string $rule

The name of the rule.

protected array $values

The accepted values.

Methods

void
__construct(Arrayable|array|string $values)

Create a new in rule instance.

string
__toString()

Convert the rule to a validation string.

Details

void __construct(Arrayable|array|string $values)

Create a new in rule instance.

Parameters

Arrayable|array|string $values

Return Value

void

string __toString()

Convert the rule to a validation string.

Return Value

string

See also

ValidationRuleParser::parseParameters