SharedWorker.php
public static function queryWorker($socketAddress, WorkerBootstrapProfile $bootstrapProfile)
    {
        $adminCookie = $bootstrapProfile->getAdminCookie();
        $channel = self::connect($socketAddress, $bootstrapProfile);
        AdminEncoding::sendQueryMessage($channel, $adminCookie);
        for (;;) {
            $message = $channel->receiveMessage();
            $status = AdminEncoding::getStatusMessage($message);
            if ($status !== null) {
                return $status;
            }
        }
    }
public static function queryWorker($socketAddress, WorkerBootstrapProfile $bootstrapProfile)
    {
        $adminCookie = $bootstrapProfile->getAdminCookie();
        $channel = self::connect($socketAddress, $bootstrapProfile);
        AdminEncoding::sendQueryMessage($channel, $adminCookie);
        for (;;) {
            $message = $channel->receiveMessage();
            $status = AdminEncoding::getStatusMessage($message);
            if ($status !== null) {
                return $status;
            }
        }
    }
public static function queryWorker ( $ socketAddress , WorkerBootstrapProfile $ bootstrapProfile ) { $ adminCookie = $ bootstrapProfile -> getAdminCookie ( ) ; $ channel = self :: connect ( $ socketAddress , $ bootstrapProfile ) ; AdminEncoding :: sendQueryMessage ( $ channel , $ adminCookie ) ; for ( ; ; ) { $ message = $ channel -> receiveMessage ( ) ; $ status = AdminEncoding :: getStatusMessage ( $ message ) ; if ( $ status !== null ) { return $ status ; } } }
@param string                 $socketAddress
@param WorkerBootstrapProfile $bootstrapProfile

@throws Exception\LogicException
@throws Exception\RuntimeException

@return Status\WorkerStatus
@param string $socketAddress @param WorkerBootstrapProfile $bootstrapProfile