Menu

## Rules
in package

Abstract Yes
Rules.php : 12

Provides validation rules for inputs data.

##### Tags

author

  Lucas S. Vieira

### Table of Contents

#### Methods

arr() : RuleInterface
  Is array rule.
boolean() : RuleInterface
  Is boolean rule.
callbackValidation() : RuleInterface
  Validate through a callback
equalsOrGreaterThan() : RuleInterface
  If a value is equals to or greater than some given value.
in() : RuleInterface
  Verify if a value is in a set of given values.
integer() : RuleInterface
  Is integer rule.
isPrimitive() : RuleInterface
  Is a primitive type rule.
numeric() : RuleInterface
  Is numeric rule.
string() : RuleInterface
  Is string rule.
uri() : RuleInterface
  Is an URI

### Methods

#### arr()

Rules.php : 19

Is array rule.

`public static arr() : RuleInterface`

##### Return values

RuleInterface

#### boolean()

Rules.php : 107

Is boolean rule.

`public static boolean() : RuleInterface`

##### Return values

RuleInterface

#### callbackValidation()

Rules.php : 265

Validate through a callback

`public static callbackValidation(callable $callback) : RuleInterface`

##### Parameters

$callback : callable

  Callback with validation logic.

##### Return values

RuleInterface

#### equalsOrGreaterThan()

Rules.php : 158

If a value is equals to or greater than some given value.

`public static equalsOrGreaterThan(int $reference) : RuleInterface`

##### Parameters

$reference : int

  Reference value.

##### Return values

RuleInterface

#### in()

Rules.php : 226

Verify if a value is in a set of given values.

`public static in(array<string|int, mixed> $values) : RuleInterface`

##### Parameters

$values : array<string|int, mixed>

  Acceptable values.

##### Return values

RuleInterface

#### integer()

Rules.php : 85

Is integer rule.

`public static integer() : RuleInterface`

##### Return values

RuleInterface

#### isPrimitive()

Rules.php : 130

Is a primitive type rule.

`public static isPrimitive() : RuleInterface`

##### Tags

see
  https://www.php.net/manual/en/language.types.intro.php

##### Return values

RuleInterface

#### numeric()

Rules.php : 63

Is numeric rule.

`public static numeric() : RuleInterface`

##### Return values

RuleInterface

#### string()

Rules.php : 41

Is string rule.

`public static string() : RuleInterface`

##### Return values

RuleInterface

#### uri()

Rules.php : 201

Is an URI

`public static uri() : RuleInterface`

##### Return values

RuleInterface

## Search results