You are here

public function Subscription::getNow in Zircon Profile 8.0

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

Get a new DateTime or the one injected for testing

Return value

DateTime

1 call to Subscription::getNow()
Subscription::setSubscription in vendor/zendframework/zend-feed/src/PubSubHubbub/Model/Subscription.php
Save subscription to RDMBS

File

vendor/zendframework/zend-feed/src/PubSubHubbub/Model/Subscription.php, line 123

Class

Subscription

Namespace

Zend\Feed\PubSubHubbub\Model

Code

public function getNow() {
  if (null === $this->now) {
    return new DateTime();
  }
  return $this->now;
}