Page MenuHomec4science

PhabricatorOneTimeTriggerClock.php
No OneTemporary

File Metadata

Created
Sat, Jan 11, 07:00

PhabricatorOneTimeTriggerClock.php

<?php
/**
* Triggers an event exactly once, at a specific epoch time.
*/
final class PhabricatorOneTimeTriggerClock
extends PhabricatorTriggerClock {
public function validateProperties(array $properties) {
PhutilTypeSpec::checkMap(
$properties,
array(
'epoch' => 'int',
));
}
public function getNextEventEpoch($last_epoch, $is_reschedule) {
if ($last_epoch) {
return null;
}
return $this->getProperty('epoch');
}
}

Event Timeline