FrozenTime.php in Lingotek Translation 3.3.x
Same filename and directory in other branches
- 8.2 tests/modules/frozenintime/src/FrozenTime.php
- 4.0.x tests/modules/frozenintime/src/FrozenTime.php
- 3.0.x tests/modules/frozenintime/src/FrozenTime.php
- 3.1.x tests/modules/frozenintime/src/FrozenTime.php
- 3.2.x tests/modules/frozenintime/src/FrozenTime.php
- 3.4.x tests/modules/frozenintime/src/FrozenTime.php
- 3.5.x tests/modules/frozenintime/src/FrozenTime.php
- 3.6.x tests/modules/frozenintime/src/FrozenTime.php
- 3.7.x tests/modules/frozenintime/src/FrozenTime.php
- 3.8.x tests/modules/frozenintime/src/FrozenTime.php
Namespace
Drupal\frozenintimeFile
tests/modules/frozenintime/src/FrozenTime.phpView source
<?php
namespace Drupal\frozenintime;
use Drupal\Component\Datetime\TimeInterface;
/**
* Time implementation were time is frozen
*
* @package Drupal\frozenintime
*/
class FrozenTime implements TimeInterface {
const MY_BIRTHDAY = 493997820;
/**
* {@inheritdoc}
*/
public function getRequestTime() {
return static::MY_BIRTHDAY;
}
/**
* {@inheritdoc}
*/
public function getRequestMicroTime() {
return static::MY_BIRTHDAY;
}
/**
* {@inheritdoc}
*/
public function getCurrentTime() {
return static::MY_BIRTHDAY;
}
/**
* {@inheritdoc}
*/
public function getCurrentMicroTime() {
return static::MY_BIRTHDAY;
}
}
Classes
Name | Description |
---|---|
FrozenTime | Time implementation were time is frozen |