AbstractProcess::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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