name = $name; $this->url = $url; if (is_string($xpaths)) { $this->xpaths[] = $xpaths; } else if (is_array($xpaths)) { $this->xpaths = $xpaths; } else { throw new InvalidArgumentException("Xpaths must be string or array"); } } public function getName() { return $this->name; } public function getUrl() { return $this->url; } public function getXpaths() { return $this->xpaths; } public function runCallbackParser($parentNode, iOutput $logger) { return FALSE; } }