for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Raigu\XRoad\SoapEnvelope\Element;
use DOMDocument;
use Exception;
/**
* I am an uninitialized element.
* I will throw an exception if injected into XML
*/
class UnInitialized implements XmlInjectable
{
* @var string
private $message;
public function inject(DOMDocument $dom): void
throw new Exception($this->message);
}
public function __construct(string $message)
$this->message = $message;