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

ThreadHandler   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPid() 0 3 1
A getSocket() 0 3 1
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