diff --git a/app/Entities/Equipment/ServerEntity.php b/app/Entities/Equipment/ServerEntity.php index 8745bd9..c2e647c 100644 --- a/app/Entities/Equipment/ServerEntity.php +++ b/app/Entities/Equipment/ServerEntity.php @@ -50,6 +50,12 @@ class ServerEntity extends EquipmentEntity $val = $this->switchinfo_uid ?? null; return ($val === '' || $val === null) ? null : (int) $val; } + public function setSwitchInfoUid($value) + { + $this->attributes['switchinfo_uid'] = ($value === '' || $value === null) ? null : (int) $value; + return $this; + } + //기본기능용 public function getCustomTitle(mixed $title = null): string { diff --git a/app/Entities/Equipment/ServerPartEntity.php b/app/Entities/Equipment/ServerPartEntity.php index bc17350..1d57509 100644 --- a/app/Entities/Equipment/ServerPartEntity.php +++ b/app/Entities/Equipment/ServerPartEntity.php @@ -37,18 +37,38 @@ class ServerPartEntity extends EquipmentEntity { return $this->clientinfo_uid ?? null; } + public function setClientinfoUid($value) + { + $this->attributes['clientinfo_uid'] = ($value === '' || $value === null) ? null : (int) $value; + return $this; + } public function getServiceInfoUid(): int|null { return $this->serviceinfo_uid ?? null; } + public function setServiceinfoUid($value) + { + $this->attributes['serviceinfo_uid'] = ($value === '' || $value === null) ? null : (int) $value; + return $this; + } public function getServerInfoUid(): int|null { return $this->serverinfo_uid ?? null; } + public function setServerinfoUid($value) + { + $this->attributes['serverinfo_uid'] = ($value === '' || $value === null) ? null : (int) $value; + return $this; + } public function getPartUid(): int|null { return $this->part_uid ?? null; } + public function setPartUid($value) + { + $this->attributes['part_uid'] = ($value === '' || $value === null) ? null : (int) $value; + return $this; + } //기본기능용 public function getCustomTitle(): string {