public static function hostWorker($id, $host = null, Logger $logger = null)
    {
        $workers = self::hostWorkers($host);

        foreach ($workers as $worker) {
            if ((string)$id == (string)$worker and posix_kill($worker->getPid(), 0)) {
                return $worker;
            }
        }

        return false;
    }
public static function hostWorker($id, $host = null, Logger $logger = null)
    {
        $workers = self::hostWorkers($host);

        foreach ($workers as $worker) {
            if ((string)$id == (string)$worker and posix_kill($worker->getPid(), 0)) {
                return $worker;
            }
        }

        return false;
    }
public static function hostWorker ( $ id , $ host = null , Logger $ logger = null ) { $ workers = self :: hostWorkers ( $ host ) ; foreach ( $ workers as $ worker ) { if ( ( string ) $ id == ( string ) $ worker and posix_kill ( $ worker -> getPid ( ) , 0 ) ) { return $ worker ; } } return false ; }
Return host worker by id

@param  string      $id     Worker id
@param  string      $host   Hostname
@param  Logger      $logger Logger
@return array|false
Return host worker by id