Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
22 | abstract class DbMutex extends Mutex |
||
23 | { |
||
24 | /** |
||
25 | * @var Connection|array|string the DB connection object or the application component ID of the DB connection. |
||
26 | * After the Mutex object is created, if you want to change this property, you should only assign |
||
27 | * it with a DB connection object. |
||
28 | * Starting from version 2.0.2, this can also be a configuration array for creating the object. |
||
29 | */ |
||
30 | public $db = 'db'; |
||
31 | |||
32 | |||
33 | /** |
||
34 | * Initializes generic database table based mutex implementation. |
||
35 | * @throws InvalidConfigException if [[db]] is invalid. |
||
36 | */ |
||
37 | 39 | public function init() |
|
43 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.