src/WSDL/XML/XMLStyle/XMLDocumentStyle.php 1 location
|
@@ 129-140 (lines=12) @@
|
126 |
|
return $result; |
127 |
|
} |
128 |
|
|
129 |
|
private function attributes(Node $node): array |
130 |
|
{ |
131 |
|
if ($node->isArray()) { |
132 |
|
$attributes = ['name' => $node->getSanitizedName(), 'type' => 'ns:' . $node->getNameForArray()]; |
133 |
|
} elseif ($node->isObject()) { |
134 |
|
$attributes = ['name' => $node->getSanitizedName(), 'type' => 'ns:' . $node->getNameForObject()]; |
135 |
|
} else { |
136 |
|
$attributes = ['name' => $node->getSanitizedName(), 'type' => 'xsd:' . $node->getType()]; |
137 |
|
} |
138 |
|
|
139 |
|
return $attributes; |
140 |
|
} |
141 |
|
} |
142 |
|
|
src/WSDL/XML/XMLStyle/XMLRpcStyle.php 1 location
|
@@ 129-140 (lines=12) @@
|
126 |
|
return $result; |
127 |
|
} |
128 |
|
|
129 |
|
private function attributes(Node $node): array |
130 |
|
{ |
131 |
|
if ($node->isArray()) { |
132 |
|
$attributes = ['name' => $node->getSanitizedName(), 'type' => 'ns:' . $node->getNameForArray()]; |
133 |
|
} elseif ($node->isObject()) { |
134 |
|
$attributes = ['name' => $node->getSanitizedName(), 'element' => 'ns:' . $node->getNameForObject()]; |
135 |
|
} else { |
136 |
|
$attributes = ['name' => $node->getSanitizedName(), 'type' => 'xsd:' . $node->getType()]; |
137 |
|
} |
138 |
|
|
139 |
|
return $attributes; |
140 |
|
} |
141 |
|
} |
142 |
|
|