File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
lib/internal/Magento/Framework/Lock Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 14
14
use Magento \Framework \Exception \InputException ;
15
15
use Magento \Framework \Phrase ;
16
16
17
+ /**
18
+ * LockManager using the DB locks
19
+ */
17
20
class Database implements \Magento \Framework \Lock \LockManagerInterface
18
21
{
19
- /** @var ResourceConnection */
22
+ /**
23
+ * @var ResourceConnection
24
+ */
20
25
private $ resource ;
21
26
22
- /** @var DeploymentConfig */
27
+ /**
28
+ * @var DeploymentConfig
29
+ */
23
30
private $ deploymentConfig ;
24
31
25
- /** @var string Lock prefix */
32
+ /**
33
+ * @var string Lock prefix
34
+ */
26
35
private $ prefix ;
27
36
28
- /** @var string|false Holds current lock name if set, otherwise false */
37
+ /**
38
+ * @var string|false Holds current lock name if set, otherwise false
39
+ */
29
40
private $ currentLock = false ;
30
41
31
42
/**
32
- * Database constructor.
33
- *
34
43
* @param ResourceConnection $resource
35
44
* @param DeploymentConfig $deploymentConfig
36
45
* @param string|null $prefix
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ class DatabaseTest extends \PHPUnit\Framework\TestCase
31
31
*/
32
32
private $ objectManager ;
33
33
34
- /** @var Database $database */
34
+ /**
35
+ * @var Database $database
36
+ */
35
37
private $ database ;
36
38
37
39
protected function setUp ()
You can’t perform that action at this time.
0 commit comments