Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
TempTableInfo
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Wikimedia\Rdbms;
4
5/**
6 * @internal
7 */
8class TempTableInfo {
9    /**
10     * @var ?TransactionIdentifier The transaction ID in which the table was
11     *   created. This is used to judge whether a rollback is tolerable.
12     */
13    public ?TransactionIdentifier $trxId;
14
15    /**
16     * @var bool Whether the table is a pseudo-permanent temporary table, that is,
17     * duplicated for PHPUnit testing.
18     */
19    public bool $pseudoPermanent;
20
21    public function __construct( ?TransactionIdentifier $trxId, bool $pseudoPermanent ) {
22        $this->trxId = $trxId;
23        $this->pseudoPermanent = $pseudoPermanent;
24    }
25}