private function isExecutable($interimName)
    {
        if ($this->param['run'] && $this->param['event'] === $interimName) {
            return true;
        } elseif (!$this->app['dispatcher']->hasListeners($interimName)) {
            return false;
        }

        $nextRun = $this->jobs[$interimName]['nextRunTime'];
        if ($interimName === CronEvents::CRON_HOURLY && $this->runtime >= $nextRun) {
            return true;
        } elseif ($this->runtime > $this->cronHour && $this->runtime >= $nextRun) {
            // Only run non-hourly event jobs if we've passed our cron hour today
            return true;
        }

        return false;
    }
private function isExecutable($interimName)
    {
        if ($this->param['run'] && $this->param['event'] === $interimName) {
            return true;
        } elseif (!$this->app['dispatcher']->hasListeners($interimName)) {
            return false;
        }

        $nextRun = $this->jobs[$interimName]['nextRunTime'];
        if ($interimName === CronEvents::CRON_HOURLY && $this->runtime >= $nextRun) {
            return true;
        } elseif ($this->runtime > $this->cronHour && $this->runtime >= $nextRun) {
            // Only run non-hourly event jobs if we've passed our cron hour today
            return true;
        }

        return false;
    }
private function isExecutable ( $ interimName ) { if ( $ this -> param [ 'run' ] && $ this -> param [ 'event' ] === $ interimName ) { return true ; } elseif ( ! $ this -> app [ 'dispatcher' ] -> hasListeners ( $ interimName ) ) { return false ; } $ nextRun = $ this -> jobs [ $ interimName ] [ 'nextRunTime' ] ; if ( $ interimName === CronEvents :: CRON_HOURLY && $ this -> runtime >= $ nextRun ) { return true ; } elseif ( $ this -> runtime > $ this -> cronHour && $ this -> runtime >= $ nextRun ) { // Only run non-hourly event jobs if we've passed our cron hour today return true ; } return false ; }
Test whether or not to call dispatcher.

@param string $interimName The cron event name

@return bool Dispatch event or not
Test whether or not to call dispatcher .