You are here

public function Subscriber::setLeaseSeconds in Zircon Profile 8.0

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

Set the number of seconds for which any subscription will remain valid

Parameters

int $seconds:

Return value

Subscriber

Throws

Exception\InvalidArgumentException

1 call to Subscriber::setLeaseSeconds()
Subscriber::setOptions in vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php
Process any injected configuration options

File

vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php, line 228

Class

Subscriber

Namespace

Zend\Feed\PubSubHubbub

Code

public function setLeaseSeconds($seconds) {
  $seconds = intval($seconds);
  if ($seconds <= 0) {
    throw new Exception\InvalidArgumentException('Expected lease seconds' . ' must be an integer greater than zero');
  }
  $this->leaseSeconds = $seconds;
  return $this;
}