You are here

public function Feed::setItunesExplicit in Zircon Profile 8.0

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

Set "explicit" flag

Parameters

bool $value:

Return value

Feed

Throws

Writer\Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Feed.php, line 215

Class

Feed

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;
}