RedisQueue   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 48
c 0
b 0
f 0
wmc 5
lcom 0
cbo 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A test() 0 4 1
A sync() 0 4 1
A async() 0 4 1
A stream() 0 4 1
1
<?php /** MicroRedisQueue */
2
3
namespace Micro\Queue\Drivers;
4
5
use Micro\Queue\Adapter;
6
7
/**
8
 * RedisQueue class file.
9
 *
10
 * @author Oleg Lunegov <[email protected]>
11
 * @link https://github.com/linpax/microphp-framework
12
 * @copyright Copyright (c) 2013 Oleg Lunegov
13
 * @license https://github.com/linpax/microphp-framework/blob/master/LICENSE
14
 * @package Micro
15
 * @subpackage Queue
16
 * @version 1.0
17
 * @since 1.0
18
 */
19
class RedisQueue implements Adapter
20
{
21
    /**
22
     * Constructor Queues
23
     *
24
     * @access public
25
     *
26
     * @param array $params Configuration array
27
     *
28
     * @result void
29
     */
30
    public function __construct(array $params = [])
31
    {
32
        // TODO: Implement __construct() method.
33
    }
34
35
    /**
36
     * @inheritdoc
37
     */
38
    public function test()
39
    {
40
        return true;
41
    }
42
43
    /**
44
     * @inheritdoc
45
     */
46
    public function sync($name, array $params = [])
47
    {
48
        return 'Hello, world!';
49
    }
50
51
    /**
52
     * @inheritdoc
53
     */
54
    public function async($name, array $params = [])
55
    {
56
        // TODO: Implement async() method.
57
    }
58
59
    /**
60
     * @inheritdoc
61
     */
62
    public function stream($name, array $params = [])
63
    {
64
        // TODO: Implement stream() method.
65
    }
66
}
67