|
@@ 213-215 (lines=3) @@
|
| 210 |
|
$ref = new GroupRef($referenced); |
| 211 |
|
$ref->setDoc($this->getDocumentation($node)); |
| 212 |
|
|
| 213 |
|
if ($node->hasAttribute("maxOccurs")) { |
| 214 |
|
$ref->setMax($node->getAttribute("maxOccurs") == "unbounded" ? -1 : (int)$node->getAttribute("maxOccurs")); |
| 215 |
|
} |
| 216 |
|
if ($node->hasAttribute("minOccurs")) { |
| 217 |
|
$ref->setMin((int)$node->getAttribute("minOccurs")); |
| 218 |
|
} |
|
@@ 228-230 (lines=3) @@
|
| 225 |
|
$ref = new ElementRef($referenced); |
| 226 |
|
$ref->setDoc($this->getDocumentation($node)); |
| 227 |
|
|
| 228 |
|
if ($node->hasAttribute("maxOccurs")) { |
| 229 |
|
$ref->setMax($node->getAttribute("maxOccurs") == "unbounded" ? -1 : (int)$node->getAttribute("maxOccurs")); |
| 230 |
|
} |
| 231 |
|
if ($node->hasAttribute("minOccurs")) { |
| 232 |
|
$ref->setMin((int)$node->getAttribute("minOccurs")); |
| 233 |
|
} |
|
@@ 301-303 (lines=3) @@
|
| 298 |
|
$group = new Group($schema, $node->getAttribute("name")); |
| 299 |
|
$group->setDoc($this->getDocumentation($node)); |
| 300 |
|
|
| 301 |
|
if ($node->hasAttribute("maxOccurs")) { |
| 302 |
|
$group->setMax($node->getAttribute("maxOccurs") == "unbounded" ? -1 : (int)$node->getAttribute("maxOccurs")); |
| 303 |
|
} |
| 304 |
|
if ($node->hasAttribute("minOccurs")) { |
| 305 |
|
$group->setMin((int)$node->getAttribute("minOccurs")); |
| 306 |
|
} |