public function dispatch($message): Envelope
    {
        $messageName = $this->getMessageName($message);

        if ($this->isIncoming($message)) {
            $this->decrementMessageQueueSize($messageName);
        } else {
            $this->incrementMessageQueueSize($messageName);
        }

        return $this->innerBus->dispatch($message);
    }
public function dispatch($message): Envelope
    {
        $messageName = $this->getMessageName($message);

        if ($this->isIncoming($message)) {
            $this->decrementMessageQueueSize($messageName);
        } else {
            $this->incrementMessageQueueSize($messageName);
        }

        return $this->innerBus->dispatch($message);
    }
public function dispatch ( $ message ) : Envelope { $ messageName = $ this -> getMessageName ( $ message ) ; if ( $ this -> isIncoming ( $ message ) ) { $ this -> decrementMessageQueueSize ( $ messageName ) ; } else { $ this -> incrementMessageQueueSize ( $ messageName ) ; } return $ this -> innerBus -> dispatch ( $ message ) ; }
Dispatches the given message to the inner Bus and Logs it.

@param object|Envelope $message
Dispatches the given message to the inner Bus and Logs it .