NullProcess::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 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