private function getRunTimes()
    {
        foreach (array_keys($this->jobs) as $interimName) {
            if (!$runEntity = $this->repository->getNextRunTime($interimName)) {
                $epoch = new \DateTime();
                $epoch->setTimestamp(0);
                $runEntity = new Entity\Cron(['interim' => $interimName, 'lastrun' => $epoch]);
            }

            $this->jobs[$interimName]['entity'] = $runEntity;
            $this->jobs[$interimName]['lastRunTime'] = $runEntity->getLastrun();
            $this->jobs[$interimName]['nextRunTime'] = $this->getNextRunTime($interimName, $runEntity);
        }
    }
private function getRunTimes()
    {
        foreach (array_keys($this->jobs) as $interimName) {
            if (!$runEntity = $this->repository->getNextRunTime($interimName)) {
                $epoch = new \DateTime();
                $epoch->setTimestamp(0);
                $runEntity = new Entity\Cron(['interim' => $interimName, 'lastrun' => $epoch]);
            }

            $this->jobs[$interimName]['entity'] = $runEntity;
            $this->jobs[$interimName]['lastRunTime'] = $runEntity->getLastrun();
            $this->jobs[$interimName]['nextRunTime'] = $this->getNextRunTime($interimName, $runEntity);
        }
    }
private function getRunTimes ( ) { foreach ( array_keys ( $ this -> jobs ) as $ interimName ) { if ( ! $ runEntity = $ this -> repository -> getNextRunTime ( $ interimName ) ) { $ epoch = new \ DateTime ( ) ; $ epoch -> setTimestamp ( 0 ) ; $ runEntity = new Entity \ Cron ( [ 'interim' => $ interimName , 'lastrun' => $ epoch ] ) ; } $ this -> jobs [ $ interimName ] [ 'entity' ] = $ runEntity ; $ this -> jobs [ $ interimName ] [ 'lastRunTime' ] = $ runEntity -> getLastrun ( ) ; $ this -> jobs [ $ interimName ] [ 'nextRunTime' ] = $ this -> getNextRunTime ( $ interimName , $ runEntity ) ; } }
Query table for last run time of each interim.
Query table for last run time of each interim .