You are here

public function AbstractFeed::setTitle in Zircon Profile 8.0

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

Set the feed title

Parameters

string $title:

Return value

AbstractFeed

Throws

Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php, line 395

Class

AbstractFeed

Namespace

Zend\Feed\Writer

Code

public function setTitle($title) {
  if (empty($title) || !is_string($title)) {
    throw new Exception\InvalidArgumentException('Invalid parameter: parameter must be a non-empty string');
  }
  $this->data['title'] = $title;
  return $this;
}