Menu

## UpdateOptionsValidator extends Validator
in package

UpdateOptionsValidator.php : 15

Class UpdateOptionsValidator

##### Tags

author

  Lucas S. Vieira

### Table of Contents

#### Methods

__construct() : mixed
  UpdateOptionsValidator constructor.
rules() : array<string|int, mixed>
  Rules for validation
validate() : true
  Validate user data

### Methods

#### __construct()

UpdateOptionsValidator.php : 29

UpdateOptionsValidator constructor.

`public __construct([array<string|int, mixed> $options = [] ]) : mixed`

##### Parameters

$options : array<string|int, mixed> = []

#### rules()

UpdateOptionsValidator.php : 39

Rules for validation

`public rules() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### validate()

Validator.php : 56

Validate user data

`public validate() : true`

##### Tags

throws
  MissingParameterException|InvalidParameterException

##### Return values

true —

if validation is successful, throw an exception otherwise.

## Search results