You are here

public function Deleted::setEncoding in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/Deleted.php \Zend\Feed\Writer\Deleted::setEncoding()

Set the feed character encoding

Parameters

$encoding:

Return value

string|null

Deleted

Throws

Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/Deleted.php, line 42

Class

Deleted

Namespace

Zend\Feed\Writer

Code

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