Menu

## TransactionOptionsValidator extends Validator
in package

TransactionOptionsValidator.php : 16

Validate transactions options values. <br> Used for avoid client errors when running javascript or stream transactions.

### Table of Contents

#### Methods

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

### Methods

#### __construct()

Validator.php : 44

Validator constructor.

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

##### Parameters

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

  Attributes to validate.

#### rules()

TransactionOptionsValidator.php : 41

Rules for connection.

`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