You are here

public function AbstractCallback::setSubscriberCount in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/PubSubHubbub/AbstractCallback.php \Zend\Feed\PubSubHubbub\AbstractCallback::setSubscriberCount()

Sets the number of Subscribers for which any updates are on behalf of. In other words, is this class serving one or more subscribers? How many? Defaults to 1 if left unchanged.

Parameters

string|int $count:

Return value

AbstractCallback

Throws

Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/PubSubHubbub/AbstractCallback.php, line 173

Class

AbstractCallback

Namespace

Zend\Feed\PubSubHubbub

Code

public function setSubscriberCount($count) {
  $count = intval($count);
  if ($count <= 0) {
    throw new Exception\InvalidArgumentException('Subscriber count must be' . ' greater than zero');
  }
  $this->subscriberCount = $count;
  return $this;
}