You are here

public function Entry::getLicense in Zircon Profile 8.0

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

Get the entry license

Parameters

int $index:

Return value

string|null

File

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

Class

Entry

Namespace

Zend\Feed\Reader\Extension\CreativeCommons

Code

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