You are here

public function Feed::getLicense in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/CreativeCommons/Feed.php \Zend\Feed\Reader\Extension\CreativeCommons\Feed::getLicense()

Get the entry license

Parameters

int $index:

Return value

string|null

File

vendor/zendframework/zend-feed/src/Reader/Extension/CreativeCommons/Feed.php, line 22

Class

Feed

Namespace

Zend\Feed\Reader\Extension\CreativeCommons

Code

public function getLicense($index = 0) {
  $licenses = $this
    ->getLicenses();
  if (isset($licenses[$index])) {
    return $licenses[$index];
  }
  return;
}