class Timestamp in CloudFlare 8
Timestamp class to get datetime.
@todo find a better approach. This was a hack to unblock automated testing.
Hierarchy
- class \Drupal\cloudflare\Timestamp implements CloudFlareTimestampInterface
Expanded class hierarchy of Timestamp
1 string reference to 'Timestamp'
1 service uses Timestamp
File
- src/
Timestamp.php, line 10
Namespace
Drupal\cloudflareView source
class Timestamp implements CloudFlareTimestampInterface {
/**
* {@inheritdoc}
*/
public function now() {
return new \DateTime();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Timestamp:: |
public | function |
Gets the current DateTime. Overrides CloudFlareTimestampInterface:: |