Completed
Branch develop (ff0d26)
by Edward
03:17
created

NullProcess   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 4
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 34
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
    public function __construct()
22
    {
23
        // do nothing
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function start(callable $callback = null)
30
    {
31
        // do nothing
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function run($callback = null)
38
    {
39
        return 0;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function wait(callable $callback = null)
46
    {
47
        return 0;
48
    }
49
}
50