public function Entry::setLink in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::setLink()
Set a link to the HTML source of this entry
Parameters
string $link:
Return value
Throws
Exception\InvalidArgumentException
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Entry.php, line 258
Class
Namespace
Zend\Feed\WriterCode
public function setLink($link) {
if (empty($link) || !is_string($link) || !Uri::factory($link)
->isValid()) {
throw new Exception\InvalidArgumentException('Invalid parameter: parameter must be a non-empty string and valid URI/IRI');
}
$this->data['link'] = $link;
return $this;
}