@@ -36,22 +36,24 @@ protected function __construct(
3636 public ?Header $ header = null ,
3737 #[Serializer \XmlAttribute(namespace: 'http://www.w3.org/XML/1998/namespace ' )]
3838 public ?string $ lang = null ,
39+ #[Serializer \Exclude]
40+ public string $ dtdUri = 'http://xml.cxml.org/schemas/cXML/1.2.063/cXML.dtd ' ,
3941 ) {
4042 }
4143
42- public static function forMessage (PayloadIdentity $ payloadIdentity , Message $ message , Header $ header , ?string $ lang = null ): self
44+ public static function forMessage (PayloadIdentity $ payloadIdentity , Message $ message , Header $ header , ?string $ lang = null , string $ dtdUri = ' http://xml.cxml.org/schemas/cXML/1.2.063/cXML.dtd ' ): self
4345 {
44- return new self ($ payloadIdentity ->payloadId , $ payloadIdentity ->timestamp , null , null , $ message , $ header , $ lang );
46+ return new self ($ payloadIdentity ->payloadId , $ payloadIdentity ->timestamp , null , null , $ message , $ header , $ lang, $ dtdUri );
4547 }
4648
47- public static function forRequest (PayloadIdentity $ payloadIdentity , Request $ request , Header $ header , ?string $ lang = null ): self
49+ public static function forRequest (PayloadIdentity $ payloadIdentity , Request $ request , Header $ header , ?string $ lang = null , string $ dtdUri = ' http://xml.cxml.org/schemas/cXML/1.2.063/cXML.dtd ' ): self
4850 {
49- return new self ($ payloadIdentity ->payloadId , $ payloadIdentity ->timestamp , $ request , null , null , $ header , $ lang );
51+ return new self ($ payloadIdentity ->payloadId , $ payloadIdentity ->timestamp , $ request , null , null , $ header , $ lang, $ dtdUri );
5052 }
5153
52- public static function forResponse (PayloadIdentity $ payloadIdentity , Response $ response , ?string $ lang = null ): self
54+ public static function forResponse (PayloadIdentity $ payloadIdentity , Response $ response , ?string $ lang = null , string $ dtdUri = ' http://xml.cxml.org/schemas/cXML/1.2.063/cXML.dtd ' ): self
5355 {
54- return new self ($ payloadIdentity ->payloadId , $ payloadIdentity ->timestamp , null , $ response , null , null , $ lang );
56+ return new self ($ payloadIdentity ->payloadId , $ payloadIdentity ->timestamp , null , $ response , null , null , $ lang, $ dtdUri );
5557 }
5658
5759 public function __toString (): string
0 commit comments