Merge "Use gendered pronouns in emailuserfooter"
[mediawiki.git] / includes / libs / rdbms / database / utils / TempTableInfo.php
blob9f4e9717f3e5c017ddb46a40dc4759b387a67e2e
1 <?php
3 namespace Wikimedia\Rdbms;
5 /**
6 * @internal
7 */
8 class 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.
13 public ?TransactionIdentifier $trxId;
15 /**
16 * @var bool Whether the table is a pseudo-permanent temporary table, that is,
17 * duplicated for PHPUnit testing.
19 public bool $pseudoPermanent;
21 public function __construct( ?TransactionIdentifier $trxId, bool $pseudoPermanent ) {
22 $this->trxId = $trxId;
23 $this->pseudoPermanent = $pseudoPermanent;