Menu

## JavascriptTransaction extends Transaction
in package

Final Yes
JavascriptTransaction.php : 21

Manages Javascript transactions

##### Tags

author

  Lucas S. Vieira

### Table of Contents

#### Methods

__construct() : mixed
  JavascriptTransaction constructor.
execute() : mixed
  Execute the transaction.

### Methods

#### __construct()

JavascriptTransaction.php : 39

JavascriptTransaction constructor.

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

##### Parameters

$connection : Connection

  Connection object to use.

$action : string

  JavaScript code to execute on server

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

  Transaction options.

##### Tags

throws
  TransactionException|InvalidParameterException|MissingParameterException

#### execute()

JavascriptTransaction.php : 52

Execute the transaction.

`public execute() : mixed`

Throws an exception if any error is detected.

##### Tags

throws
  TransactionException|GuzzleException

##### Return values

mixed —

The result value of transaction

## Search results