AbstractProcess   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
ccs 0
cts 3
cp 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 6 1
1
<?php
2
/**
3
 * @author    jan huang <[email protected]>
4
 * @copyright 2017
5
 *
6
 * @see      https://www.github.com/janhuang
7
 * @see      http://www.fast-d.cn/
8
 */
9
10
namespace FastD\Process;
11
12
use FastD\Swoole\Process;
13
14
/**
15
 * Class AbstractProcess.
16
 */
17
abstract class AbstractProcess extends Process
18
{
19
    protected $options = [];
20
21
    /**
22
     * @param array $options
23
     *
24
     * @return $this
25
     */
26
    public function configure(array $options = [])
27
    {
28
        $this->options = $options;
29
30
        return $this;
31
    }
32
}
33