Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| CriticalSessionInfo | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * @license GPL-2.0-or-later |
| 4 | * @file |
| 5 | */ |
| 6 | namespace Wikimedia\Rdbms; |
| 7 | |
| 8 | /** |
| 9 | * @ingroup Database |
| 10 | * @internal This class should not be used outside of Database |
| 11 | */ |
| 12 | class CriticalSessionInfo { |
| 13 | /** @var TransactionIdentifier|null */ |
| 14 | public $trxId; |
| 15 | /** @var bool */ |
| 16 | public $trxExplicit; |
| 17 | /** @var string[] */ |
| 18 | public $trxWriteCallers; |
| 19 | /** @var string[] */ |
| 20 | public $trxPreCommitCbCallers; |
| 21 | /** @var array<string,array> */ |
| 22 | public $namedLocks; |
| 23 | /** @var array<string,array<string, TempTableInfo>> */ |
| 24 | public $tempTables; |
| 25 | |
| 26 | /** |
| 27 | * @param TransactionIdentifier|null $trxId |
| 28 | * @param bool $trxExplicit |
| 29 | * @param array $trxWriteCallers |
| 30 | * @param array $trxPreCommitCbCallers |
| 31 | * @param array $namedLocks |
| 32 | * @param array $tempTables |
| 33 | */ |
| 34 | public function __construct( |
| 35 | ?TransactionIdentifier $trxId, |
| 36 | bool $trxExplicit, |
| 37 | array $trxWriteCallers, |
| 38 | array $trxPreCommitCbCallers, |
| 39 | array $namedLocks, |
| 40 | array $tempTables |
| 41 | ) { |
| 42 | $this->trxId = $trxId; |
| 43 | $this->trxExplicit = $trxExplicit; |
| 44 | $this->trxWriteCallers = $trxWriteCallers; |
| 45 | $this->trxPreCommitCbCallers = $trxPreCommitCbCallers; |
| 46 | $this->namedLocks = $namedLocks; |
| 47 | $this->tempTables = $tempTables; |
| 48 | } |
| 49 | } |