class FrozenTime in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 8.2 tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 4.0.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 3.0.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 3.1.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 3.2.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 3.3.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 3.4.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 3.5.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 3.7.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
- 3.8.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
Time implementation were time is frozen
@package Drupal\frozenintime
Hierarchy
- class \Drupal\frozenintime\FrozenTime implements TimeInterface
Expanded class hierarchy of FrozenTime
File
- tests/
modules/ frozenintime/ src/ FrozenTime.php, line 12
Namespace
Drupal\frozenintimeView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FrozenTime:: |
public | function |
Returns the current system time with microsecond precision. Overrides TimeInterface:: |
|
FrozenTime:: |
public | function |
Returns the current system time as an integer. Overrides TimeInterface:: |
|
FrozenTime:: |
public | function |
Returns the timestamp for the current request with microsecond precision. Overrides TimeInterface:: |
|
FrozenTime:: |
public | function |
Returns the timestamp for the current request. Overrides TimeInterface:: |
|
FrozenTime:: |
constant |