Test Failed
Push — develop ( d3d02f...9481b3 )
by Brent
04:21
created

ThreadHandler::getPid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Pageon\Pcntl;
4
5
class ThreadHandler
6
{
7
8
    private $pid;
9
10
    private $socket;
11
12
    public function __construct($pid, $socket) {
13
        $this->pid = $pid;
14
        $this->socket = $socket;
15
    }
16
17
    /**
18
     * @return mixed
19
     */
20
    public function getPid() {
21
        return $this->pid;
22
    }
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getSocket() {
28
        return $this->socket;
29
    }
30
31
}
32