Jelix\Dependencies\Item::__construct PHP Method

__construct() public method

Item constructor.
public __construct ( string $name, boolean $isInstalled, string $currentVersion, integer $action, null $nextVersion = null )
$name string an name that is unique among all items
$isInstalled boolean
$currentVersion string
$action integer one of Resolver::ACTION_* const
$nextVersion null if action is ACTION_UPGRADE
    public function __construct($name, $isInstalled, $currentVersion, $action = 0, $nextVersion = null)
    {
        $this->name = $name;
        $this->_isInstalled = $isInstalled;
        $this->currentVersion = $currentVersion;
        $this->action = $action;
        $this->nextVersion = $nextVersion;
    }