You are here

public function Entry::setCommentLink in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::setCommentLink()

Set a link to a HTML page containing comments associated with this entry

Parameters

string $link:

Return value

Entry

Throws

Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/Entry.php, line 292

Class

Entry

Namespace

Zend\Feed\Writer

Code

public function setCommentLink($link) {
  if (empty($link) || !is_string($link) || !Uri::factory($link)
    ->isValid()) {
    throw new Exception\InvalidArgumentException('Invalid parameter: "link" must be a non-empty string and valid URI/IRI');
  }
  $this->data['commentLink'] = $link;
  return $this;
}