Arango PHP ODM

TransactionOptionsValidator extends Validator

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

Table of Contents

Properties

$canHave  : array<string|int, mixed>
Optional keys
$data  : array<string|int, mixed>
Data to validate.
$required  : array<string|int, mixed>
Required keys

Methods

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

Properties

$canHave

Optional keys

protected array<string|int, mixed> $canHave = ['maxTransactionSize', 'waitForSync', 'allowImplicit', 'lockTimeout']

$data

Data to validate.

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

Methods

__construct()

Validator constructor.

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

Attributes to validate.

validateCollectionsParameter()

Validate 'collections' param

private static validateCollectionsParameter() : Closure
Return values
Closure

        
On this page

Search results