protected function obtainRunnerFile(): string
    {
        $moduleInfos = $this->loadInfos;
        $runnerFile  = '';

        if (property_exists($moduleInfos, 'runner')) {
            $runnerFile = (string) $moduleInfos->runner;
        }

        if (empty($runnerFile)) {
            return '';
        }

        $runnerFile = MODULES_DIR.$this->name.'/'.$runnerFile;
        if (!file_exists($runnerFile)) {
            throw new Exception(
                'Runner file for module '.$this->name.' not found.',
                $this::ERR_RUNNER_FILE_NOT_FOUND
            );
        }

        return $runnerFile;
    }
protected function obtainRunnerFile(): string
    {
        $moduleInfos = $this->loadInfos;
        $runnerFile  = '';

        if (property_exists($moduleInfos, 'runner')) {
            $runnerFile = (string) $moduleInfos->runner;
        }

        if (empty($runnerFile)) {
            return '';
        }

        $runnerFile = MODULES_DIR.$this->name.'/'.$runnerFile;
        if (!file_exists($runnerFile)) {
            throw new Exception(
                'Runner file for module '.$this->name.' not found.',
                $this::ERR_RUNNER_FILE_NOT_FOUND
            );
        }

        return $runnerFile;
    }
protected function obtainRunnerFile ( ) : string { $ moduleInfos = $ this -> loadInfos ; $ runnerFile = '' ; if ( property_exists ( $ moduleInfos , 'runner' ) ) { $ runnerFile = ( string ) $ moduleInfos -> runner ; } if ( empty ( $ runnerFile ) ) { return '' ; } $ runnerFile = MODULES_DIR . $ this -> name . '/' . $ runnerFile ; if ( ! file_exists ( $ runnerFile ) ) { throw new Exception ( 'Runner file for module ' . $ this -> name . ' not found.' , $ this :: ERR_RUNNER_FILE_NOT_FOUND ) ; } return $ runnerFile ; }
Get path to the runner file

@return string

@throws \Exception If the file not exists
Get path to the runner file