mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-08 04:48:28 +01:00
0b233e461e
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
15 lines
235 B
PHP
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);
|
|
}
|
|
|
|
}
|