public function registerMessage(Message $message): bool
    {
        $uri = $this->config->getBaseUri()->withPath('/interactions');

        $body = \json_encode($message->jsonSerialize());

        $this->client->post($uri, [
            'headers' => [
                'Content-Type'        => 'application/json',
                'X-Pact-Mock-Service' => true,
            ],
            'body' => $body,
        ]);

        return true;
    }
public function registerMessage(Message $message): bool
    {
        $uri = $this->config->getBaseUri()->withPath('/interactions');

        $body = \json_encode($message->jsonSerialize());

        $this->client->post($uri, [
            'headers' => [
                'Content-Type'        => 'application/json',
                'X-Pact-Mock-Service' => true,
            ],
            'body' => $body,
        ]);

        return true;
    }
public function registerMessage ( Message $ message ) : bool { $ uri = $ this -> config -> getBaseUri ( ) -> withPath ( '/interactions' ) ; $ body = \ json_encode ( $ message -> jsonSerialize ( ) ) ; $ this -> client -> post ( $ uri , [ 'headers' => [ 'Content-Type' => 'application/json' , 'X-Pact-Mock-Service' => true , ] , 'body' => $ body , ] ) ; return true ; }
Separate function for messages, instead of interactions, as I am unsure what to do with the Ruby Standalone at the moment

@param Message $message

@return bool
Separate function for messages instead of interactions as I am unsure what to do with the Ruby Standalone at the moment