mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-04 00:24:14 +01:00
save tmp work before trying to fetch other wml deps
This commit is contained in:
29
tests/php-unit-tests/integration-tests/XmlModuleMetaInfo.php
Normal file
29
tests/php-unit-tests/integration-tests/XmlModuleMetaInfo.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Combodo\iTop\Test\UnitTest;
|
||||
|
||||
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->sLastNodeId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user