public function parseXpath(\DOMXPath $xpath, array $options = array()) { $node_list = $xpath->query('./module_definition', $options['context']); if ($node_list->length === 0) { throw new ParseException("Missing module_definition node. Please check the given module_schema."); } return Schema\ModuleDefinition::create($this->parseModuleDefinition($xpath, $node_list->item(0))); }
protected function __construct() { $this->module_definition = ModuleDefinition::create(); $this->aggregate_definitions = ModuleDefinitionSet::create(); }