src/AbstractPool.php
public function getProcessByPid($pid)
    {
        foreach ($this->processes as $process) {
            if ($process->getPid() == $pid) {
                return $process;
            }
        }

        return null;
    }
public function getProcessByPid($pid)
    {
        foreach ($this->processes as $process) {
            if ($process->getPid() == $pid) {
                return $process;
            }
        }

        return null;
    }
public function getProcessByPid ( $ pid ) { foreach ( $ this -> processes as $ process ) { if ( $ process -> getPid ( ) == $ pid ) { return $ process ; } } return null ; }
get process by pid

@param $pid
@return null|Process
get process by pid