|
@@ 246-248 (lines=3) @@
|
| 243 |
|
$ref = new GroupRef($referenced); |
| 244 |
|
$ref->setDoc($this->getDocumentation($node)); |
| 245 |
|
|
| 246 |
|
if ($node->hasAttribute("maxOccurs")) { |
| 247 |
|
$ref->setMax($node->getAttribute("maxOccurs") == "unbounded" ? -1 : (int)$node->getAttribute("maxOccurs")); |
| 248 |
|
} |
| 249 |
|
if ($node->hasAttribute("minOccurs")) { |
| 250 |
|
$ref->setMin((int)$node->getAttribute("minOccurs")); |
| 251 |
|
} |
|
@@ 261-263 (lines=3) @@
|
| 258 |
|
$ref = new ElementRef($referenced); |
| 259 |
|
$ref->setDoc($this->getDocumentation($node)); |
| 260 |
|
|
| 261 |
|
if ($node->hasAttribute("maxOccurs")) { |
| 262 |
|
$ref->setMax($node->getAttribute("maxOccurs") == "unbounded" ? -1 : (int)$node->getAttribute("maxOccurs")); |
| 263 |
|
} |
| 264 |
|
if ($node->hasAttribute("minOccurs")) { |
| 265 |
|
$ref->setMin((int)$node->getAttribute("minOccurs")); |
| 266 |
|
} |
|
@@ 342-344 (lines=3) @@
|
| 339 |
|
$group = new Group($schema, $node->getAttribute("name")); |
| 340 |
|
$group->setDoc($this->getDocumentation($node)); |
| 341 |
|
|
| 342 |
|
if ($node->hasAttribute("maxOccurs")) { |
| 343 |
|
$group->setMax($node->getAttribute("maxOccurs") == "unbounded" ? -1 : (int)$node->getAttribute("maxOccurs")); |
| 344 |
|
} |
| 345 |
|
if ($node->hasAttribute("minOccurs")) { |
| 346 |
|
$group->setMin((int)$node->getAttribute("minOccurs")); |
| 347 |
|
} |