NullProcess   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 4
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 34
ccs 8
cts 8
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A start() 0 4 1
A run() 0 4 1
A wait() 0 4 1
1
<?php
2
/**
3
 * File NullProcess.php
4
 *
5
 * @author Edward Pfremmer <[email protected]>
6
 */
7
namespace Epfremme\ProcessQueue\Process;
8
9
use Symfony\Component\Process\Process;
10
11
/**
12
 * Class NullProcess
13
 *
14
 * @package Epfremme\ProcessQueue\Process
15
 */
16
class NullProcess extends Process
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21 9
    public function __construct()
22
    {
23
        // do nothing
24 9
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29 6
    public function start($callback = null)
30
    {
31
        // do nothing
32 6
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37 1
    public function run($callback = null)
38
    {
39 1
        return 0;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45 1
    public function wait($callback = null)
46
    {
47 1
        return 0;
48
    }
49
}
50