public function Subscription::getNow in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Zend\Feed\PubSubHubbub\ModelCode
public function getNow() {
if (null === $this->now) {
return new DateTime();
}
return $this->now;
}