@@ 109-118 (lines=10) @@ | ||
106 | return $attribute; |
|
107 | } |
|
108 | ||
109 | private function loadAttributeDef(Schema $schema, DOMElement $node) |
|
110 | { |
|
111 | $attribute = new AttributeDef($schema, $node->getAttribute('name')); |
|
112 | ||
113 | $schema->addAttribute($attribute); |
|
114 | ||
115 | return function () use ($attribute, $schema, $node) { |
|
116 | $this->fillItem($attribute, $node); |
|
117 | }; |
|
118 | } |
|
119 | ||
120 | /** |
|
121 | * @param DOMElement $node |
|
@@ 603-611 (lines=9) @@ | ||
600 | } |
|
601 | } |
|
602 | ||
603 | private function loadElementDef(Schema $schema, DOMElement $node) |
|
604 | { |
|
605 | $element = new ElementDef($schema, $node->getAttribute('name')); |
|
606 | $schema->addElement($element); |
|
607 | ||
608 | return function () use ($element, $node) { |
|
609 | $this->fillItem($element, $node); |
|
610 | }; |
|
611 | } |
|
612 | ||
613 | private function fillItem(Item $element, DOMElement $node) |
|
614 | { |