1 | <?php |
||
5 | class Process |
||
6 | { |
||
7 | private $pid; |
||
8 | private $command; |
||
9 | |||
10 | public function __construct($cl = false) |
||
17 | |||
18 | private function runCom() |
||
24 | |||
25 | public function setPid($pid) |
||
29 | |||
30 | public function getPid() |
||
34 | |||
35 | public function status() |
||
45 | |||
46 | public function start() |
||
54 | |||
55 | public function stop() |
||
65 | } |
||
66 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.