Cron\Report\JobReport::setEndTime PHP Method

setEndTime() public method

public setEndTime ( float $endTime )
$endTime float
    public function setEndTime($endTime)
    {
        $this->endTime = $endTime;
    }

Usage Example

Example #1
0
 /**
  * Register the end of a job to the report.
  */
 protected function registerEnd()
 {
     if (is_null($this->report->getEndTime())) {
         $this->report->setEndTime(microtime(true));
     }
 }