Completed
Pull Request — master (#16)
by Akihito
03:03
created

Process   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 47
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setStatus() 0 4 1
A getPid() 0 4 1
A getStatus() 0 4 1
1
<?php
2
namespace Ackintosh\Snidel\Fork;
3
4
class Process
5
{
6
    /** @var int */
7
    private $pid;
8
9
    /** @var int */
10
    private $status;
11
12
    /**
13
     * @param   int     $pid
14
     */
15
    public function __construct($pid)
16
    {
17
        $this->pid = $pid;
18
    }
19
20
    /**
21
     * set exit status
22
     *
23
     * @param   int     $status
24
     * @return  void
25
     */
26
    public function setStatus($status)
27
    {
28
        $this->status = $status;
29
    }
30
31
    /**
32
     * return pid
33
     *
34
     * @return  int
35
     */
36
    public function getPid()
37
    {
38
        return $this->pid;
39
    }
40
41
    /**
42
     * return exit status
43
     *
44
     * @return int
45
     */
46
    public function getStatus()
47
    {
48
        return $this->status;
49
    }
50
}
51