In
in package
Table of Contents
- $rule : mixed
- The name of the rule.
- $values : array<string|int, mixed>
- The accepted values.
- __construct() : void
- Create a new in rule instance.
- __toString() : string
- Convert the rule to a validation string.
Properties
$rule
The name of the rule.
protected
mixed
$rule
= 'in'
$values
The accepted values.
protected
array<string|int, mixed>
$values
Methods
__construct()
Create a new in rule instance.
public
__construct(array<string|int, mixed> $values) : void
Parameters
- $values : array<string|int, mixed>
Return values
void —__toString()
Convert the rule to a validation string.
public
__toString() : string