Internal/AdminEncoding.php
public static function getStatusMessage($message)
    {
        if ($message instanceof WorkerStatus) {
            return $message;
        } elseif ($message instanceof stdClass && isset($message->_status_)) {
            return WorkerStatus::fromArrayOrObject($message->_status_);
        } elseif (is_array($message) && isset($message['_status_'])) {
            return WorkerStatus::fromArrayOrObject($message['_status_']);
        }
    }
public static function getStatusMessage($message)
    {
        if ($message instanceof WorkerStatus) {
            return $message;
        } elseif ($message instanceof stdClass && isset($message->_status_)) {
            return WorkerStatus::fromArrayOrObject($message->_status_);
        } elseif (is_array($message) && isset($message['_status_'])) {
            return WorkerStatus::fromArrayOrObject($message['_status_']);
        }
    }
@param mixed $message

@return WorkerStatus|null