You are here

class FrozenTime in Lingotek Translation 3.8.x

Same name and namespace in other branches
  1. 8.2 tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  2. 4.0.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  3. 3.0.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  4. 3.1.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  5. 3.2.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  6. 3.3.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  7. 3.4.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  8. 3.5.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  9. 3.6.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime
  10. 3.7.x tests/modules/frozenintime/src/FrozenTime.php \Drupal\frozenintime\FrozenTime

Time implementation were time is frozen

@package Drupal\frozenintime

Hierarchy

Expanded class hierarchy of FrozenTime

File

tests/modules/frozenintime/src/FrozenTime.php, line 12

Namespace

Drupal\frozenintime
View 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

Namesort descending Modifiers Type Description Overrides
FrozenTime::getCurrentMicroTime public function Returns the current system time with microsecond precision. Overrides TimeInterface::getCurrentMicroTime
FrozenTime::getCurrentTime public function Returns the current system time as an integer. Overrides TimeInterface::getCurrentTime
FrozenTime::getRequestMicroTime public function Returns the timestamp for the current request with microsecond precision. Overrides TimeInterface::getRequestMicroTime
FrozenTime::getRequestTime public function Returns the timestamp for the current request. Overrides TimeInterface::getRequestTime
FrozenTime::MY_BIRTHDAY constant