diff --git a/src/Dto/Output/HardwareProfileOutput.php b/src/Dto/Output/HardwareProfileOutput.php index 93a3b55..980d2e4 100644 --- a/src/Dto/Output/HardwareProfileOutput.php +++ b/src/Dto/Output/HardwareProfileOutput.php @@ -53,13 +53,13 @@ final class HardwareProfileOutput extends AbstractOutput )] public ?string $createdBy = null; - public function __construct(HardwareProfile $hardwareProfile) + public function __construct(HardwareProfile $hardwareProfile, bool $includeClient = true) { parent::__construct($hardwareProfile); $this->description = $hardwareProfile->getDescription(); $this->comments = $hardwareProfile->getComments(); - if($hardwareProfile->getClient()) { + if($includeClient && $hardwareProfile->getClient()) { $this->client = new ClientOutput($hardwareProfile->getClient()); } diff --git a/src/Dto/Output/NetworkSettingsOutput.php b/src/Dto/Output/NetworkSettingsOutput.php index d433c8f..e797034 100644 --- a/src/Dto/Output/NetworkSettingsOutput.php +++ b/src/Dto/Output/NetworkSettingsOutput.php @@ -189,7 +189,7 @@ final class NetworkSettingsOutput extends AbstractOutput } if ($networkSettings->getHardwareProfile()) { - $this->hardwareProfile = new HardwareProfileOutput($networkSettings->getHardwareProfile()); + $this->hardwareProfile = new HardwareProfileOutput($networkSettings->getHardwareProfile(), false); } if ($networkSettings->getOgLive()) {