You are here

public function AbstractCallback::__construct in Zircon Profile 8

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

Constructor; accepts an array or Traversable object to preset options for the Subscriber without calling all supported setter methods in turn.

Parameters

array|Traversable $options Options array or Traversable object:

File

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

Class

AbstractCallback

Namespace

Zend\Feed\PubSubHubbub

Code

public function __construct($options = null) {
  if ($options !== null) {
    $this
      ->setOptions($options);
  }
}