File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function getMessage(): ?TagMessage
3636 $ messageName = $ this ->getAttributeMessage ();
3737
3838 if (!empty ($ messageName )) {
39- $ message = $ this ->getDomDocumentHandler ()->getElementByNameAndAttributes (' message ' , [
39+ $ message = $ this ->getDomDocumentHandler ()->getElementByNameAndAttributes (AbstractDocument:: TAG_MESSAGE , [
4040 'name ' => $ messageName ,
4141 ], true );
4242 }
Original file line number Diff line number Diff line change 44
55namespace WsdlToPhp \WsdlHandler \Tag ;
66
7+ use WsdlToPhp \WsdlHandler \AbstractDocument ;
8+
79class TagAttributeGroup extends Tag
810{
911 public function getReferencingElements (): array
1012 {
1113 $ elements = [];
12- $ attributeGroups = $ this ->getDomDocumentHandler ()->getElementsByNameAndAttributes (' attributeGroup ' , [
14+ $ attributeGroups = $ this ->getDomDocumentHandler ()->getElementsByNameAndAttributes (AbstractDocument:: TAG_ATTRIBUTE_GROUP , [
1315 'ref ' => sprintf ('*:%s ' , $ this ->getAttributeName ()),
1416 ]);
1517 /*
1618 * In case of a referencing element that use this attributeGroup that is not namespaced,
1719 * use the non namespaced value
1820 */
1921 if (empty ($ attributeGroups )) {
20- $ attributeGroups = $ this ->getDomDocumentHandler ()->getElementsByNameAndAttributes (' attributeGroup ' , [
22+ $ attributeGroups = $ this ->getDomDocumentHandler ()->getElementsByNameAndAttributes (AbstractDocument:: TAG_ATTRIBUTE_GROUP , [
2123 'ref ' => sprintf ('*%s ' , $ this ->getAttributeName ()),
2224 ]);
2325 }
Original file line number Diff line number Diff line change 44
55namespace WsdlToPhp \WsdlHandler \Tag ;
66
7+ use WsdlToPhp \WsdlHandler \AbstractDocument ;
8+
79class TagMessage extends Tag
810{
911 public function getPart (string $ name ): ?TagPart
1012 {
11- return $ this ->getChildByNameAndAttributes (' part ' , [
13+ return $ this ->getChildByNameAndAttributes (AbstractDocument:: TAG_PART , [
1214 'name ' => $ name ,
1315 ]);
1416 }
You can’t perform that action at this time.
0 commit comments