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 an unique X-Road request id.
*
* I assign a random id to myself upon creation.
* I can inject myself into SOAP envelope header
*/
final class UniqueId extends AbstractElement
{
public function __construct()
parent::__construct(
new Id(
bin2hex(random_bytes(16))
)
);
}