Completed
Push — master ( 58bdc6...03e490 )
by Akihito
02:22
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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A fork() 0 4 1
A signal() 0 4 1
A waitpid() 0 4 1
A wifexited() 0 4 1
A wexitstatus() 0 4 1
1
<?php
2
class Snidel_Pcntl
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
3
{
4
    /**
5
     * @see pcntl_fork
6
     */
7
    public function fork()
8
    {
9
        return pcntl_fork();
10
    }
11
12
    /**
13
     * @see pcntl_signal
14
     */
15
    public function signal($signo, $handler, $restart_syscall = true)
16
    {
17
        return pcntl_signal($signo, $handler, $restart_syscall);
18
    }
19
20
    /**
21
     * @see pcntl_waitpid
22
     */
23
    public function waitpid($pid, &$status, $options = 0)
24
    {
25
        return pcntl_waitpid($pid, $status, $options);
26
    }
27
28
    /**
29
     * @see pcntl_wifexited
30
     */
31
    public function wifexited($status)
32
    {
33
        return pcntl_wifexited($status);
34
    }
35
36
    /**
37
     * @see pcntl_wexitstatus()
38
     */
39
    public function wexitstatus($status)
40
    {
41
        return pcntl_wexitstatus($status);
42
    }
43
}
44