Total Complexity | 6 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Env extends BaseObject |
||
22 | { |
||
23 | /** |
||
24 | * @var Cache|array|string |
||
25 | */ |
||
26 | public $cache = 'cache'; |
||
27 | /** |
||
28 | * @var Connection|array|string |
||
29 | */ |
||
30 | public $db = 'db'; |
||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | public $pushTableName = '{{%queue_push}}'; |
||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | public $execTableName = '{{%queue_exec}}'; |
||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | public $workerTableName = '{{%queue_worker}}'; |
||
43 | /** |
||
44 | * @var int |
||
45 | */ |
||
46 | public $workerPingInterval = 15; |
||
47 | |||
48 | /** |
||
49 | * @return static |
||
50 | */ |
||
51 | public static function ensure() |
||
52 | { |
||
53 | return Yii::$container->get(static::class); |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | public function init() |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function canListenWorkerLoop() |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getHost() |
||
95 |
If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.