Completed
Push — master ( 58bdc6...03e490 )
by Akihito
02:22
created

Snidel_Pcntl::wexitstatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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