You are viewing an older version of the documentation. For the latest, please visit master documentation.

Enum

Implements

Properties

protected

$type string

The type of the enum.

Default: null

Methods

public

__construct ( $type ) : void

Create a new rule instance.

Parameters

  • $type string
public

passes ( $attribute , $value ) : bool

Determine if the validation rule passes.

Parameters

  • $attribute string
  • $value mixed
public

message ( ) : array

Get the validation error message.