mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
cleanup after rebasing
This commit is contained in:
29
setup/moduledependency/validation/xmlmodulemetainfo.php
Normal file
29
setup/moduledependency/validation/xmlmodulemetainfo.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Combodo\iTop\Setup\ModuleDependency\Validation;
|
||||
|
||||
class XmlModuleMetaInfo {
|
||||
public string $sLastNodeId;
|
||||
public string $sNodeName;
|
||||
public string $sPath;
|
||||
public string $sDelta;
|
||||
|
||||
public function __construct(string $sLastNodeId, string $sNodeName, string $sPath, string $sDelta)
|
||||
{
|
||||
$this->sLastNodeId = $sLastNodeId;
|
||||
$this->sNodeName = $sNodeName;
|
||||
$this->sPath = $sPath;
|
||||
$this->sDelta = $sDelta;
|
||||
}
|
||||
|
||||
public function IsDefine() : bool {
|
||||
return
|
||||
$this->sDelta === 'define_if_not_exists'
|
||||
|| $this->sDelta === 'define';
|
||||
}
|
||||
|
||||
public function GetUID() : string
|
||||
{
|
||||
return $this->sNodeName . '_' . $this->sPath;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user