for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Raigu\XRoad\SoapEnvelope;
use Raigu\XRoad\SoapEnvelope\Element\AbstractElement;
/**
* I am a X-Road Message id.
*
* I can inject myself into SOAP envelope header
*/
final class Id extends AbstractElement
{
* @param string $id Unique identifier of X-Road message.
* According to the specification recommended
* form of message id is UUID.
* @see https://www.x-tee.ee/docs/live/xroad/pr-mess_x-road_message_protocol.html#22-message-headers
public function __construct(string $id)
parent::__construct(
new SoapHeaderElement('id', $id)
);
}