Puli\Manager\Conflict\DependencyGraph::addModuleName PHP Method

addModuleName() public method

Adds a module name to the graph.
public addModuleName ( string $moduleName )
$moduleName string The module name.
    public function addModuleName($moduleName)
    {
        if (isset($this->moduleNames[$moduleName])) {
            throw new RuntimeException(sprintf('The module "%s" was added to the graph twice.', $moduleName));
        }
        $this->moduleNames[$moduleName] = true;
        $this->dependencies[$moduleName] = array();
    }