public function AbstractFeed::setEncoding in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::setEncoding()
Set the feed character encoding
Parameters
string $encoding:
Return value
Throws
Exception\InvalidArgumentException
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ AbstractFeed.php, line 412
Class
Namespace
Zend\Feed\WriterCode
public function setEncoding($encoding) {
if (empty($encoding) || !is_string($encoding)) {
throw new Exception\InvalidArgumentException('Invalid parameter: parameter must be a non-empty string');
}
$this->data['encoding'] = $encoding;
return $this;
}