Dummy::fetchJob()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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
class Dummy extends AbstractQueue
19
{
20
    /**
21
     * @inheritdoc
22
     */
23
    protected function postJob(JobInterface $job, array $options = []): bool
24
    {
25
        $this->run($job);
26
        return true;
27
    }
28
29
    /**
30
     * @inheritdoc
31
     */
32
    protected function fetchJob()
33
    {
34
        return false;
35
    }
36
37
    /**
38
     * @inheritdoc
39
     */
40
    protected function deleteJob(JobInterface $job): bool
41
    {
42
        return true;
43
    }
44
45
    /**
46
     * @inheritdoc
47
     */
48
    protected function releaseJob(JobInterface $job): bool
49
    {
50
        return true;
51
    }
52
53
    /**
54
     * @inheritdoc
55
     */
56
    public function getSize(): int
57
    {
58
        return 0;
59
    }
60
61
    /**
62
     * @inheritdoc
63
     */
64
    public function purge(): bool
65
    {
66
        return true;
67
    }
68
}
69