1 | <?php |
||
12 | class QueueMongodbFactory { |
||
13 | |||
14 | /** |
||
15 | * The queue storage. |
||
16 | * |
||
17 | * @var \MongoDB\Database |
||
18 | */ |
||
19 | protected $database; |
||
20 | |||
21 | /** |
||
22 | * The settings array. |
||
23 | * |
||
24 | * @var \Drupal\Core\Site\Settings |
||
25 | */ |
||
26 | protected $settings; |
||
27 | |||
28 | /** |
||
29 | * Constructs this factory object. |
||
30 | * |
||
31 | * @param \MongoDB\Database $database |
||
32 | * The database object. |
||
33 | * @param \Drupal\Core\Site\Settings $settings |
||
34 | * The system settings. |
||
35 | */ |
||
36 | public function __construct(Database $database, Settings $settings) { |
||
40 | |||
41 | /** |
||
42 | * Constructs a new queue object for a given name. |
||
43 | * |
||
44 | * @param string $name |
||
45 | * The name of the collection holding key and value pairs. |
||
46 | * |
||
47 | * @return \Drupal\Core\Queue\DatabaseQueue |
||
|
|||
48 | * A key/value store implementation for the given $collection. |
||
49 | */ |
||
50 | public function get($name) { |
||
54 | |||
55 | } |
||
56 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.