setLink($link); } } /** * Get the link * * @api * @return string */ public function getLink() { return $this->link; } /** * Set the link * * @api * @param string $link Link * @return static */ public function setLink($link) { $this->link = (string)$link; return $this; } /** * @see Element::render() */ public function render(\DOMDocument $domDocument) { $domElement = $domDocument->createElement("goto"); $linkElement = $domDocument->createElement("link", $this->link); $domElement->appendChild($linkElement); return $domElement; } }