You are here

public function Deleted::setReference 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::setReference()

Set reference

Parameters

$reference:

Return value

Deleted

Throws

Exception\InvalidArgumentException

File

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

Class

Deleted

Namespace

Zend\Feed\Writer

Code

public function setReference($reference) {
  if (empty($reference) || !is_string($reference)) {
    throw new Exception\InvalidArgumentException('Invalid parameter: reference must be a non-empty string');
  }
  $this->data['reference'] = $reference;
  return $this;
}