MultipleQueueInterface
last analyzed

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
getQueues() 0 1 ?
getQueue() 0 1 ?
postToQueue() 0 1 ?
1
<?php
2
3
/**
4
 * @author    Flipbox Factory
5
 * @copyright Copyright (c) 2017, Flipbox Digital
6
 * @link      https://github.com/flipbox/queue/releases/latest
7
 * @license   https://github.com/flipbox/queue/blob/master/LICENSE
8
 */
9
10
namespace flipbox\queue\queues;
11
12
use flipbox\queue\jobs\JobInterface;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
interface MultipleQueueInterface extends QueueInterface
19
{
20
    /**
21
     * @return QueueInterface[];
0 ignored issues
show
Documentation introduced by
The doc-type QueueInterface[]; could not be parsed: Expected "|" or "end of type", but got ";" at position 16. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
22
     */
23
    public function getQueues();
24
25
    /**
26
     * @param $index
27
     * @return QueueInterface;
0 ignored issues
show
Documentation introduced by
The doc-type QueueInterface; could not be parsed: Expected "|" or "end of type", but got ";" at position 14. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
28
     */
29
    public function getQueue($index);
30
31
    /**
32
     * @param JobInterface $job
33
     * @param $index
34
     * @return bool
35
     */
36
    public function postToQueue(JobInterface $job, $index): bool;
37
}
38