/** * Returns a human readable string representing time allowed for the buffer * * @return string */ public function readableTime($specify = 'remaining_buffer_minutes') { if ($this->{$specify} >= 0) { return ReadableTimeInterval::timeDuration($this->{$specify} * 60, 'wdh'); } return "(Late)" . ReadableTimeInterval::timeDuration(-$this->{$specify} * 60, 'wdh'); }
/** * Returns a human readable string representing time on the constraint * * @return string */ public function readableTime() { return ReadableTimeInterval::timeDuration($this->data['minutes'] * 60); }