You are here

public function Entry::setItunesExplicit in Zircon Profile 8.0

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

Set "explicit" flag

Parameters

bool $value:

Return value

Entry

Throws

Writer\Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Entry.php, line 153

Class

Entry

Namespace

Zend\Feed\Writer\Extension\ITunes

Code

public function setItunesExplicit($value) {
  if (!in_array($value, [
    'yes',
    'no',
    'clean',
  ])) {
    throw new Writer\Exception\InvalidArgumentException('invalid parameter: "explicit" may only' . ' be one of "yes", "no" or "clean"');
  }
  $this->data['explicit'] = $value;
  return $this;
}