/** * @param DOMElement $node * @param Item $item */ protected function setTags(DOMElement $node, Item $item) { $tags = $this->getNodeValuesByTagName($node, 'category'); foreach ($tags as $tag) { $item->addTag($tag); } }