Google\Cloud\Datastore\Transaction::__construct PHP Method

__construct() public method

Create a Transaction
public __construct ( Operation $operation, string $projectId, string $transactionId )
$operation Operation Class that handles shared API interaction.
$projectId string The Google Cloud Platform project ID.
$transactionId string The transaction to run mutations in.
    public function __construct(Operation $operation, $projectId, $transactionId)
    {
        $this->operation = $operation;
        $this->projectId = $projectId;
        $this->transactionId = $transactionId;
    }