Completed
Push — master ( 68a3b4...eb08b5 )
by Akihito
02:34
created

Fork::unserialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace Ackintosh\Snidel;
3
4
class Fork
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