RedisConnection   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 66
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A failure() 0 1 1
A delete() 0 1 1
A push() 0 1 1
A pop() 0 1 1
A release() 0 1 1
A jobs() 0 1 1
A failed_jobs() 0 1 1
1
<?php
2
3
namespace WP_Queue\Connections;
4
5
use Exception;
6
use WP_Queue\Job;
7
8
class RedisConnection implements ConnectionInterface {
9
10
	/**
11
	 * Push a job onto the queue.
12
	 *
13
	 * @param Job $job
14
	 * @param int $delay
15
	 *
16
	 * @return bool|int
17
	 */
18
	public function push( Job $job, $delay = 0 ) {
19
		//
20
	}
21
22
	/**
23
	 * Retrieve a job from the queue.
24
	 *
25
	 * @return bool|Job
26
	 */
27
	public function pop() {
28
		//
29
	}
30
31
	/**
32
	 * Delete a job from the queue.
33
	 *
34
	 * @param Job $job
35
	 */
36
	public function delete( $job ) {
37
		//
38
	}
39
40
	/**
41
	 * Release a job back onto the queue.
42
	 *
43
	 * @param Job $job
44
	 */
45
	public function release( $job ) {
46
		//
47
	}
48
49
	/**
50
	 * Push a job onto the failure queue.
51
	 *
52
	 * @param Job       $job
53
	 * @param Exception $exception
54
	 */
55
	public function failure( $job, Exception $exception ) {
56
		//
57
	}
58
59
	/**
60
	 * Get total jobs in the queue.
61
	 *
62
	 * @return int
63
	 */
64
	public function jobs() {
65
		//
66
	}
67
68
	/**
69
	 * Get total jobs in the failures queue.
70
	 *
71
	 * @return int
72
	 */
73
	public function failed_jobs() {
74
		//
75
	}
76
77
}