You are here

public function Entry::addCategories 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::addCategories()

Set an array of entry categories

Parameters

array $categories:

Return value

Entry

File

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

Class

Entry

Namespace

Zend\Feed\Writer

Code

public function addCategories(array $categories) {
  foreach ($categories as $category) {
    $this
      ->addCategory($category);
  }
  return $this;
}