class Contains implements Stringable

Properties

protected array $values

The values that should be contained in the attribute.

Methods

__construct(array|Arrayable|UnitEnum|string $values)

Create a new contains rule instance.

string
__toString()

Convert the rule to a validation string.

Details

at line 23
__construct(array|Arrayable|UnitEnum|string $values)

Create a new contains rule instance.

Parameters

array|Arrayable|UnitEnum|string $values

at line 35
string __toString()

Convert the rule to a validation string.

Return Value

string