N°8772 - Form dependencies manager implementation - WIP

This commit is contained in:
Eric Espie
2025-10-23 15:11:14 +02:00
parent 98c0b11db7
commit fd449d195d
13 changed files with 133 additions and 55 deletions

View File

@@ -8,6 +8,8 @@ class FormInput
private string $sType;
private array $aConnections = [];
public function __construct(string $sName, string $sType)
{
$this->sName = $sName;
@@ -33,4 +35,19 @@ class FormInput
{
$this->sType = $sType;
}
public function Connect(string $sOutputBlockName, string $sOutputName)
{
$this->aConnections[] = ['block' => $sOutputBlockName, 'output' => $sOutputName];
}
public function GetConnections(): array
{
return $this->aConnections;
}
public function HasConnections(): bool
{
return count($this->aConnections) > 0;
}
}