public function getModule($moduleName)
    {
        if (!$this->hasModule($moduleName)) {
            throw new ModuleException(__CLASS__, "Module $moduleName couldn't be connected");
        }

        return $this->modules[$moduleName];
    }
public function getModule($moduleName)
    {
        if (!$this->hasModule($moduleName)) {
            throw new ModuleException(__CLASS__, "Module $moduleName couldn't be connected");
        }

        return $this->modules[$moduleName];
    }
public function getModule ( $ moduleName ) { if ( ! $ this -> hasModule ( $ moduleName ) ) { throw new ModuleException ( __CLASS__ , "Module $moduleName couldn't be connected" ) ; } return $ this -> modules [ $ moduleName ] ; }
Get a module from this ModuleContainer.

@param string $moduleName
@return \Codeception\Module
@throws \Codeception\Exception\ModuleException
Get a module from this ModuleContainer .