Jelix\Installer\AbstractInstallLauncher::getResolverItem PHP Method

getResolverItem() public method

public getResolverItem ( string $epId ) : Item
$epId string
return Jelix\Dependencies\Item
    public function getResolverItem($epId)
    {
        $action = $this->getInstallAction($epId);
        if ($action == Resolver::ACTION_UPGRADE) {
            $item = new Item($this->moduleInfos->name, true, $this->moduleInfos->version, Resolver::ACTION_UPGRADE, $this->moduleStatuses[$epId]->version);
        } else {
            $item = new Item($this->moduleInfos->name, $this->isInstalled($epId), $this->moduleInfos->version, $action);
        }
        foreach ($this->moduleInfos->dependencies as $dep) {
            $item->addDependency($dep['name'], $dep['version']);
        }
        $item->setProperty('component', $this);
        return $item;
    }