Completed
Push — master ( 526d6e...2376dc )
by Akihito
03:04
created

Snidel_Pcntl   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 42
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A Pcntl::fork() 0 4 1
A Pcntl::signal() 0 4 1
A Pcntl::waitpid() 0 4 1
A Pcntl::wifexited() 0 4 1
1
<?php
2
namespace Ackintosh\Snidel;
3
4
class Pcntl
5
{
6
    /**
7
     * @see pcntl_fork
8
     */
9
    public function fork()
10
    {
11
        return pcntl_fork();
12
    }
13
14
    /**
15
     * @see pcntl_signal
16
     */
17
    public function signal($signo, $handler, $restart_syscall = true)
18
    {
19
        return pcntl_signal($signo, $handler, $restart_syscall);
20
    }
21
22
    /**
23
     * @see pcntl_waitpid
24
     */
25
    public function waitpid($pid, &$status, $options = 0)
26
    {
27
        return pcntl_waitpid($pid, $status, $options);
28
    }
29
30
    /**
31
     * @see pcntl_wifexited
32
     */
33
    public function wifexited($status)
34
    {
35
        return pcntl_wifexited($status);
36
    }
37
38
    /**
39
     * @see pcntl_wexitstatus()
40
     */
41
    public function wexitstatus($status)
42
    {
43
        return pcntl_wexitstatus($status);
44
    }
45
}
46