function(bbn\Cron $cron) { if ($cron->check()) { $this->cron = $cron; $this->exe_path = $cron->getExePath(); } }