1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-08 04:48:28 +01:00
phorge-phorge/src/infrastructure/time/PhabricatorTimeGuard.php
epriestley 0b233e461e Consolidate some datetime code and add unit tests
Summary: See D6115.

Test Plan:
  - Ran unit tests.
  - Viewed reports.
  - Created a countdown.
  - Searched chatlog.
  - Searched pastes by created date.

Reviewers: btrahan, chad

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D6116
2013-06-03 12:58:11 -07:00

15 lines
235 B
PHP

<?php
final class PhabricatorTimeGuard {
private $frameKey;
public function __construct($frame_key) {
$this->frameKey = $frame_key;
}
public function __destruct() {
PhabricatorTime::popTime($this->frameKey);
}
}